Skip to content

Instantly share code, notes, and snippets.

@Goram
Last active December 23, 2015 06:19
Show Gist options
  • Save Goram/6593313 to your computer and use it in GitHub Desktop.
Save Goram/6593313 to your computer and use it in GitHub Desktop.
<?php
array(
'spec' => array(
'name' => 'isParentUser',
'type' => 'Select',
'options' => array(
'label' => 'Darf Benutzer anlegen',
'value_options' => array(
'' => 'Nein',
'true' => 'Ja'
)
)
)
),
+
array(
'name' => 'isParentUser',
'filter' => array(
array(
'name' => 'Boolean'
)
)
),
returns 'true' and 'false' not true and false in form but works correct if it´s used direct
array(6) {
["username"] => string(12) "asdasdwsaf4"
["email"] => string(14) "asdad4@lala.de"
["email2"] => string(14) "asdad4@lala.de"
["role"] => string(3) "125"
["isParentUser"] => string(5) "false"
["parentUserId"] => string(0) ""
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment