X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=DataObjects%2FCore_company.php;h=25e37a0280c85518673f2561a59e3a9154f2931e;hp=346bc4003cc1f61143fc86406301bf7b8883e346;hb=a3117cab6f8ed529d74b93b4d852825c0a2a1ed9;hpb=221ffcd643adbbb9eda71bdccb0ef5b9f3fcef7b diff --git a/DataObjects/Core_company.php b/DataObjects/Core_company.php index 346bc400..25e37a02 100644 --- a/DataObjects/Core_company.php +++ b/DataObjects/Core_company.php @@ -265,10 +265,12 @@ class Pman_Core_DataObjects_Core_Company extends DB_DataObject $this->deleted_dt = $this->sqlValue("NOW()"); $this->deleted_by = $roo->getAuthUser()->id; - } else { - $this->deleted_dt = ""; - $this->deleted_by = 0; - } + } + } + + if(!empty($q['_flag_undelete'])){ + $this->deleted_dt = ""; + $this->deleted_by = 0; } if(!empty($q['_check_name'])){ if($this->checkName()){