From: edward Date: Fri, 4 Nov 2016 06:01:22 +0000 (+0800) Subject: DataObjects/Core_company.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=f8f8c62e60a42d098fde11ef9862ac5e4be2aaa0 DataObjects/Core_company.php --- diff --git a/DataObjects/Core_company.php b/DataObjects/Core_company.php index 08916c8e..c922dae1 100644 --- a/DataObjects/Core_company.php +++ b/DataObjects/Core_company.php @@ -256,7 +256,11 @@ class Pman_Core_DataObjects_Core_Company extends DB_DataObject function beforeUpdate($old, $q,$roo) { if(!empty($q['_check_name'])){ - $this->checkName(); + if($this->checkName()){ + $roo->jok('OK'); + } + + $roo->jerr('EXIST'); } if(!empty($q['_merge_id'])){