#6429: ajax autocomplete input is not interchangable with form->input
----------------------------+-----------------------------------------------
    Reporter:  brammeleman  |          Type:  Enhancement
      Status:  new          |      Priority:  Medium     
   Milestone:  1.2.x.x      |     Component:  Helpers    
     Version:  1.2 Final    |      Severity:  Normal     
    Keywords:               |   Php_version:  n/a        
Cake_version:  8166         |  
----------------------------+-----------------------------------------------
 When I mix normal form inputs with autocomplete fields (ajax helper), I
 get visually different results.
 For example, the html returned by $form->input, looks like:
 {{{
 <div class="input text required">
 <label for="ItemDescription">Description</label>
 <input type="text" id="ItemDescription" value="Example description"
 maxlength="255" name="data[Item][description]" autocomplete="off"/>
 </div>
 }}}
 While $ajax->autocomplete returns:
 {{{
 <input type="text" value="Example description" autocomplete="off"
 id="ItemDescription"  name="data[Item][description]"/>
 }}}
 I.e. the wrapping div element and the label are missing.

 A possible fix is to replace "$this->Form->text" by "$this->Form->input"
 on line 490 of cake/libs/view/helpers/ajax.php.

-- 
Ticket URL: <https://trac.cakephp.org/ticket/6429>
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
-~----------~----~----~----~------~----~------~--~---

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

Reply via email to