]> _ Git - cubist_cms-back.git/commitdiff
wip #5944 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 24 May 2023 09:14:19 +0000 (11:14 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 24 May 2023 09:14:19 +0000 (11:14 +0200)
src/app/Magic/Fields/Field.php

index 8f9837a714e3a66120249ac702b8cb18ecd11888..b46ef69796e483192aef738bc25454dbee8a7bc7 100644 (file)
@@ -418,6 +418,8 @@ class Field implements \ArrayAccess
                 $this->setAttribute('auth', false);
                 $this->setAttribute('type', 'noteditable');
                 $this->setAttribute('view_namespace', CubistBackpackServiceProvider::NAMESPACE . '::fields');
+                $this->setAttribute('tab',null);
+                $this->setAttribute('label','');
             }
         } else if (null !== $this->getAttribute('can_hidden', null)) {
             if (!self::can($this->getAttribute('can_hidden'))) {
@@ -427,6 +429,8 @@ class Field implements \ArrayAccess
                 $this->setAttribute('auth', false);
                 $this->setAttribute('type', 'authhidden');
                 $this->setAttribute('view_namespace', CubistBackpackServiceProvider::NAMESPACE . '::fields');
+                $this->setAttribute('tab',null);
+                $this->setAttribute('label','');
             }
         }