Permalink
Browse files

Set <?$field_type?> into form template

  • Loading branch information...
1 parent 2d6e2c7 commit 9ef5812a68fa882e6d85629e6e9b8ae5b8473a50 @romaninsh romaninsh committed Mar 13, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/Form.php
View
@@ -139,6 +139,7 @@ function addField($type,$name,$caption=null,$attr=null){
$last_field=$this->add('Form_Field_'.$type,$name,'form_body','form_line')
->setCaption($caption);
+ $last_field->template->trySet('field_type',$type);
if (is_array($attr)){
foreach ($attr as $key => $value){
$this->last_field->setProperty($key, $value);

0 comments on commit 9ef5812

Please sign in to comment.