Skip to content
Permalink
Browse files

switch to normalizer since default is ignored for some reason, fixes #…

  • Loading branch information
flack committed Nov 20, 2019
1 parent 9020f47 commit c5fef55af48816f70554652977ab792e56b110ef
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/midcom/datamanager/extension/type/urlnameType.php
@@ -22,7 +22,9 @@ class urlnameType extends AbstractType
*/
public function configureOptions(OptionsResolver $resolver)
{
$resolver->setDefault('write_privilege', ['privilege' => 'midcom:urlname']);
$resolver->setNormalizer('write_privilege', function (Options $options, $value) {
return (array) $value + ['privilege' => 'midcom:urlname'];
});
helper::add_normalizers($resolver, [
'type_config' => [

0 comments on commit c5fef55

Please sign in to comment.
You can’t perform that action at this time.