Show
Ignore:
Timestamp:
09/27/05 14:23:15 (3 years ago)
Author:
sfuchs
Message:

fixed patForms_Creator_Definition reference problem with adding rules (seems to result from php5.1 reference behaviour)
fixed typos in patForms_Rule_MaxLength
fixed patForms_Storage_Propel to write results back to the form after saving (especially useful for retrieving primary key values for added entries)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/patForms/Rule/MaxLength.php

    r339 r342  
    138138    function applyRule(&$element, $type = PATFORMS_RULE_AFTER_VALIDATION) 
    139139    { 
    140         if(strlen($element->getValue()) <= $this->value) { 
     140        if(strlen($element->getValue()) <= $this->_value) { 
    141141            return  true; 
    142142        } 
    143143 
    144         $this->addValidationError(1, array('value' => $this->value)); 
     144        $this->addValidationError(1, array('value' => $this->_value)); 
    145145        return false; 
    146146    } 
     
    156156        parent::registerJavascripts($form); 
    157157 
    158         $script = sprintf("pfr_%s.setValue(%s);\n", $this->_id, $this->value); 
     158        $script = sprintf("pfr_%s.setValue(%s);\n", $this->_id, $this->_value); 
    159159        $form->registerInstanceJavascript($script); 
    160160    }