]> git.andy128k.dev Git - ipf.git/commitdiff
fix deprecated call. LateClean
authorAndrey Kutejko <andy128k@gmail.com>
Fri, 13 May 2011 14:33:49 +0000 (17:33 +0300)
committerAndrey Kutejko <andy128k@gmail.com>
Fri, 13 May 2011 14:33:49 +0000 (17:33 +0300)
ipf/form.php
ipf/form/field.php
ipf/form/field/treemodelchoice.php

index ee23ca7db352a7a02417ecd77fd923446cabdbdf..118e7f3c49db1aef39721bfd18c04b25f283b75b 100644 (file)
@@ -98,7 +98,7 @@ class IPF_Form implements Iterator
     public function clean()
     {
         foreach ($this->fields as $name=>$field) {
-               $field->LateClean(&$this->data, &$this->cleaned_data);
+               $field->LateClean($this->data, $this->cleaned_data);
         }
         return $this->cleaned_data;
     }
index f2e10d6871539e46f4c0c90c1621a3960404f080..8a41c4d3c915c31322d5f479010959a1f438e2e9 100644 (file)
@@ -50,7 +50,7 @@ class IPF_Form_Field
         return $value;
     }
 
-    function LateClean($data, $cleaned_data){
+    function LateClean($data, &$cleaned_data){
     }
 
     protected function getWidget(){
index bd20a08db5b39fdaa24747cd6016d0f35e68e75d..f598af868fae0657b66a5114cf847b93cfec143b 100644 (file)
@@ -46,7 +46,7 @@ class IPF_Form_Field_TreeModelChoice extends IPF_Form_Field_Choice{
         }
     }
 
-    function LateClean($data, $cleaned_data){
+    function LateClean($data, &$cleaned_data){
         foreach($this->_models as &$m){
             $cleaned_data[$m['field']] = $data[$m['field']];
         }