]> _ Git - cubist_cms-back.git/commitdiff
#2783
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 24 May 2019 14:50:52 +0000 (16:50 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 24 May 2019 14:50:52 +0000 (16:50 +0200)
src/app/Magic/Fields/Field.php

index c0798196c30b7bc507d014cc15b4bcec0f9c9ce9..c4c241495f0eff743e6d804b54fce3699087df41 100644 (file)
@@ -29,6 +29,7 @@ class Field
             throw new Exception('You must specify a field name');
         }
         $class = static::_getClass($attributes['type']);
+        unset($attributes['type']);
         return new $class($attributes);
     }