Fixed saving edit_by in some Controllers
This commit is contained in:
@@ -3,8 +3,18 @@
|
||||
class Productgroup extends mfBaseModel {
|
||||
private $products;
|
||||
private $contractconfiggroups;
|
||||
|
||||
public function getProperty($name) {
|
||||
|
||||
protected function beforeUpdate($data) {
|
||||
if(!array_key_exists("edit_by", $data)) {
|
||||
$me = new User();
|
||||
$me->loadMe();
|
||||
$data["edit_by"] = $me->id;
|
||||
}
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
public function getProperty($name) {
|
||||
if($this->$name == null) {
|
||||
|
||||
if(!$this->id) {
|
||||
|
||||
Reference in New Issue
Block a user