projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8d72d1
)
DataObjects/Companies.php
author
Alan Knowles
<alan@roojs.com>
Tue, 5 May 2015 03:13:54 +0000
(11:13 +0800)
committer
Alan Knowles
<alan@roojs.com>
Tue, 5 May 2015 03:13:54 +0000
(11:13 +0800)
DataObjects/Companies.php
patch
|
blob
|
history
diff --git
a/DataObjects/Companies.php
b/DataObjects/Companies.php
index
b0df0bf
..
4c2b443
100644
(file)
--- a/
DataObjects/Companies.php
+++ b/
DataObjects/Companies.php
@@
-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...');
}