⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

BUG : setRule error when using readOnlyEditFields



w.jonker
  • profile picture
  • Member

Posted 11 October 2018 - 10:29 AM

The problem is as following

 

When setting a rule :

$crud->setRule('voornaam', 'lengthMax', '100');
$crud->setRule('voornaam', 'required');

 

And using readOnlyEditFields :

$crud->readOnlyEditFields(['voornaam']);

 

I cant save a form that I edit, because it says it has no length and is required. But the field is in fact filled, but not editable.