]> git.agnieray.net Git - galette.git/commitdiff
Do not override list configuration storing fields
authorJohan Cwiklinski <johan@x-tnd.be>
Wed, 27 May 2020 06:01:33 +0000 (08:01 +0200)
committerJohan Cwiklinski <johan@x-tnd.be>
Wed, 27 May 2020 06:01:33 +0000 (08:01 +0200)
galette/lib/Galette/Entity/FieldsConfig.php

index 61dfbec71399b812b2c1eabcd8ec5fc033803722..28f01fb818503298a975a9447fbda42beeb9d46d 100644 (file)
@@ -745,9 +745,7 @@ class FieldsConfig
                     'required'              => ':required',
                     'visible'               => ':visible',
                     'position'              => ':position',
-                    FieldsCategories::PK    => ':category',
-                    'list_visible'          => ':list_visible',
-                    'list_position'         => ':list_position'
+                    FieldsCategories::PK    => ':category'
                 )
             )->where(
                 array(
@@ -764,11 +762,6 @@ class FieldsConfig
                         $field['required'] = $this->zdb->isPostgres() ? 'false' : 0;
                     }
 
-                    $list_visible = $field['list_visible'] ?? false;
-                    if ($list_visible === false) {
-                        $list_visible = $this->zdb->isPostgres() ? 'false' : 0;
-                    }
-
                     if ($field['field_id'] === 'parent_id') {
                         $field['visible'] = 0;
                     }
@@ -778,8 +771,6 @@ class FieldsConfig
                         'visible'               => $field['visible'],
                         'position'              => $pos,
                         FieldsCategories::PK    => $field['category'],
-                        'list_visible'          => $list_visible,
-                        'list_position'         => $field['list_position'] ?? -1,
                         'where1'                => $field['field_id']
                     );