fix #8131 - chinese translations
[Pman.Core] / DataObjects / Core_watch.php
index 2cce4e1..2e207ff 100644 (file)
@@ -182,8 +182,6 @@ class Pman_Core_DataObjects_Core_watch extends DB_DataObject
                 continue;
             }
          
-         
-         
             $nn = DB_DataObject::Factory('core_notify');
             $nn->ontable = $to_ontable === false ? $ontable : $to_ontable;
             $nn->onid = $to_onid === false ?  $onid : $to_onid;
@@ -284,6 +282,7 @@ class Pman_Core_DataObjects_Core_watch extends DB_DataObject
             $n->trigger_event_id = $event->id;
             $n->person_id = $watch->person_id;
             $n->watch_id =  $watch->id;
+            $n->evtype   = $watch->medium;
             
             // does this watch already have a flag...
             $nf = clone($n);
@@ -297,9 +296,7 @@ class Pman_Core_DataObjects_Core_watch extends DB_DataObject
             $n->act_start( empty($n->act_start) ? date("Y-m-d H:i:s") : $n->act_start );
             $n->insert();
         }
-        
-        
-        
+         
     }
     function initDatabase($roo, $data) {
         foreach($data as $d) {