#5532: Booleans and checkboxes are broken with PostgreSQL
----------------------------+-----------------------------------------------
    Reporter:  aarkerio     |         Owner:         
        Type:  Bug          |        Status:  new    
    Priority:  Medium       |     Milestone:  1.2.x.x
   Component:  Helpers      |       Version:  RC3    
    Severity:  Normal       |    Resolution:         
    Keywords:  form helper  |   Php_version:  PHP 5  
Cake_version:               |  
----------------------------+-----------------------------------------------
Comment (by aarkerio):

 I have been seen form.php helper and I think the issue is around 815 line:

 } elseif (!empty($value) && $value === $options['value']) {
                $options['checked'] = 'checked';
 }

 because if I dump inside the checkbox function:

 var_dump($value);
 var_dump($options['value']);

 I get:

 string(1) "1"
 int(1)


 so $value === $options['value']   fails.

 I hope this help and BTW I wanna to tell you how many around the world
 appreciate your terrific work.

-- 
Ticket URL: <https://trac.cakephp.org/ticket/5532#comment:1>
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/tickets-cakephp?hl=en
-~----------~----~----~----~------~----~------~--~---

  • Re: [CakePHP : The Rapid... CakePHP : The Rapid Development Framework for PHP
    • Re: [CakePHP : The ... CakePHP : The Rapid Development Framework for PHP

Reply via email to