#2920: [PATCH] Form helper input method error parameter should pass escape 
boolean
to error method
---------------------------------------------------------------+------------
    Reporter:  ketan                                           |         Owner: 
        
        Type:  Enhancement                                     |        Status: 
 new    
    Priority:  Medium                                          |     Milestone: 
 1.3.x.x
   Component:  Helpers                                         |       Version: 
        
    Severity:  Normal                                          |    Resolution: 
        
    Keywords:  formHelper input error escape validation ketan  |   Php_version: 
 n/a    
Cake_version:                                                  |  
---------------------------------------------------------------+------------
Comment (by evelio):

 Also added here, and I've worked around it adding a new option called
 'escape-error', it allows escape the input value with the 'escape' option
 and don't the error message from model, doing it separately, by default
 "false"


 see the diff


 {{{
 389c389
 <               $defaults = array('wrap' => true, 'class' => 'error-
 message', 'escape' => true);
 ---
 >               $defaults = array('wrap' => true, 'class' => 'error-
 message', 'error-escape' => false);
 418c418
 <                       if ($options['escape']) {
 ---
 >                       if ($options['error-escape']) {
 420c420
 <                               unset($options['escape']);
 ---
 >                               unset($options['error-escape']);
 808c808
 <                               $errMsg = $this->error($fieldName,
 $error);
 ---
 >                               $errMsg = $this->error($fieldName, $error,
 $options);

 }}}

-- 
Ticket URL: <https://trac.cakephp.org/ticket/2920#comment:6>
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
-~----------~----~----~----~------~----~------~--~---

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

Reply via email to