DataObjects/Core_enum.php
[Pman.Core] / DataObjects / Core_enum.php
index 06d6488..e9f6d7a 100644 (file)
@@ -125,6 +125,7 @@ class Pman_Core_DataObjects_Core_enum extends DB_DataObject
     function beforeUpdate($old, $request,$roo)
     {   
         if(!empty($request['_merge_id'])){
+            print_R($request);exit;
             $this->merge($request['_merge_id'], $roo);
         }
         
@@ -369,7 +370,7 @@ class Pman_Core_DataObjects_Core_enum extends DB_DataObject
             foreach ($chk->fetchAll() as $c){
                 $cc = clone ($c);
                 $c->{$ka[1]} = $to;
-                $c->update($o);
+                $c->update($cc);
             }
         }