Show
Ignore:
Timestamp:
12/15/05 19:36:34 (6 years ago)
Author:
john
Message:

fix FormHelper to be able to reload the field value from the form

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/trax/vendor/trax/action_view/helpers/form_helper.php

    r99 r102  
    3737 
    3838    function value() { 
    39         $object = $this->object(); 
    40         if(is_object($object) && $this->field_name) { 
    41             return $object->send($this->field_name); 
    42         } 
     39        if(!$value = $_REQUEST[$this->object_name][$this->field_name]) { 
     40            $object = $this->object(); 
     41            if(is_object($object) && $this->field_name) { 
     42                $value = $object->send($this->field_name); 
     43            } 
     44        } 
     45        return $value;  
    4346    } 
    4447