Show
Ignore:
Timestamp:
03/06/08 23:52:03 (6 months ago)
Author:
Shadowhand
Message:

Fixing a bug in Forge that caused Form_Hidden to produce unnecessary inputs.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/modules/forge/libraries/Form_Hidden.php

    r2022 r2227  
    1515    ( 
    1616        'name'  => '', 
    17         'type'  => 'hidden', 
    18         'class' => 'hidden', 
    1917        'value' => '', 
    2018    ); 
    2119 
    22     protected $protect = array('type', 'label'); 
    23  
    2420    public function render() 
    2521    { 
    26         $data = $this->data; 
    27  
    28         return form::hidden($data); 
     22        return form::hidden($this->data['name'], $this->data['value']); 
    2923    } 
    3024