#6014: Checkbox helper doesn't work correctly with Aro Aco values --------------------------------+------------------------------------------- Reporter: lf234662 | Owner: Type: Test Case | Status: closed Priority: Medium | Milestone: 1.2.x.x Component: Helpers | Version: 1.2 Final Severity: Normal | Resolution: worksforme Keywords: checkbox helper | Php_version: PHP 5 Cake_version: | --------------------------------+------------------------------------------- Changes (by mark_story):
* status: new => closed * resolution: => worksforme Comment: Making this change will break all checkboxes with values less than 0. You will no longer be able to make checkboxes with values less than 0. I don't think this is a good solution. And probably the reason it works as is. You should be defining the '''correct''' value for your inputs. Making {{{ echo $form->checkbox($obj['Profil']['code'].'.read'); }}} into {{{ echo $form->checkbox($obj['Profil']['code'].'.read', array('value' => 1)); }}} Gets the results you want I think. [[BR]][[BR]] I think breaking all checkboxes with negative values is a bad idea. If you disagree please reopen with a reason why this is a good idea. -- Ticket URL: <https://trac.cakephp.org/ticket/6014#comment:3> CakePHP : The Rapid Development Framework for PHP <https://trac.cakephp.org/> Cake is a rapid development framework for PHP which uses commonly known design patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. Our primary goal is to provide a structured framework that enables PHP users at all levels to rapidly develop robust web applications, without any loss to flexibility. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "tickets cakephp" group. To post to this group, send email to tickets-cakephp@googlegroups.com To unsubscribe from this group, send email to tickets-cakephp+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~----------~----~----~----~------~----~------~--~---