Development

Changeset 11153

You must first sign up to be able to contribute.

Changeset 11153

Show
Ignore:
Timestamp:
08/26/08 10:43:19 (10 months ago)
Author:
nicolas
Message:

[1.1] closes #4153 - fixed sfWidgetFormSchema does not apply id_format to hidden fields

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.1/lib/widget/sfWidgetFormSchema.class.php

    r10290 r11153  
    374374      if ($widget instanceof sfWidgetForm && $widget->isHidden()) 
    375375      { 
    376         $hiddenRows[] = $widget->render($this->generateName($name), $value, $widgetAttributes); 
     376        $hiddenRows[] = $this->renderField($name, $value, $widgetAttributes); 
    377377      } 
    378378      else 
  • branches/1.1/test/unit/widget/sfWidgetFormSchemaTest.php

    r9458 r11153  
    313313<tr> 
    314314  <th><label style="padding: 5px" for="id_article_last_name">Last name</label></th> 
    315   <td><input type="text" name="article[last_name]" value="Potencier" class="bar" id="id_article_last_name" /><input type="hidden" name="article[id]" id="article_id" /></td> 
     315  <td><input type="text" name="article[last_name]" value="Potencier" class="bar" id="id_article_last_name" /><input type="hidden" name="article[id]" id="id_article_id" /></td> 
    316316</tr> 
    317317 

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting, and supporting several large Open-Source projects.