projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
f227de7
)
add before update to fill in empty name
author
Alan Knowles
<alan@roojs.com>
Thu, 22 Jul 2021 04:59:05 +0000
(12:59 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 22 Jul 2021 04:59:05 +0000
(12:59 +0800)
DataObjects/Core_group.php
patch
|
blob
|
history
diff --git
a/DataObjects/Core_group.php
b/DataObjects/Core_group.php
index
b3a6ae6
..
682d9b0
100644
(file)
--- a/
DataObjects/Core_group.php
+++ b/
DataObjects/Core_group.php
@@
-134,6
+134,13
@@
class Pman_Core_DataObjects_Core_group extends DB_DataObject
}
}
+
+ function beforeUpdate($old, $request,$roo)
+ {
+ if (isset($q['display_name']) && !isset($q['name']) && !$this->is_system) {
+ $this->name = $q['display_name'];
+ }
+ }
function beforeDelete()