DataObjects/Office.php
authoredward <edward@roojs.com>
Wed, 20 Jul 2016 07:03:28 +0000 (15:03 +0800)
committeredward <edward@roojs.com>
Wed, 20 Jul 2016 07:03:28 +0000 (15:03 +0800)
DataObjects/Office.php

index 7afaf5e..334649e 100644 (file)
@@ -53,15 +53,13 @@ class Pman_Core_DataObjects_Office extends DB_DataObject
     
     function beforeDelete($dependants_array, $roo)
     {
-        print_R($dependants_array);exit;
-        print_R('run?>>>');exit;
         if (count($dependants_array) != 1) {
             //$roo->jerr("more than one dependant type....");
             return true; // standard error message.
         }
         
         $p = DB_DAtaObject::Factory('Person');
-        
+        print_R($p);exit;
         if (!is_a($dependants_array[0], get_class($p))) {
             $roo->jerr("dep is not a person..");
             return true;