In fact this was a bug. Ticket submited and gwoo has corrected the problem.
https://trac.cakephp.org/ticket/3869 On 4 jan, 15:35, Kalt <[EMAIL PROTECTED]> wrote: > 1.2.0.6311-beta : if you define an optionnal input in your $validate > array, the FormHelper mark it with a "required" css class. > > In a Model : > > var $validate = array ( > 'test' => array( > 'rule' => 'alphaNumeric', > 'required' => false, > 'allowEmpty' => true > ) > ); > > In the View : > > e($form->input('test')); > > As a result in HTML : > > <div class="input required">[...] > > Is it a bug or is there a way to bypass this ? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
