DataObjects/Companies.php
authorAlan Knowles <alan@roojs.com>
Tue, 5 May 2015 03:13:54 +0000 (11:13 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 5 May 2015 03:13:54 +0000 (11:13 +0800)
DataObjects/Companies.php

index b0df0bf..4c2b443 100644 (file)
@@ -248,7 +248,7 @@ class Pman_Core_DataObjects_Companies extends DB_DataObject
     function beforeUpdate($old, $q,$roo)
     {
         if(!empty($this->is_system) && 
-            ($old->code != $this->code || $old->name != $this->name)
+            ($old->code != $this->code  ) // used to be not allowed to change name..
         ){
             $roo->jerr('This company is not allow to editing Ref. or Company Name...');
         }