Fixed saving edit_by in some Controllers
This commit is contained in:
@@ -9,8 +9,17 @@ class Network extends mfBaseModel {
|
||||
private $buildings;
|
||||
private $adb_netzgebiet;
|
||||
|
||||
|
||||
public function getTypeAddresses($search_type) {
|
||||
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 getTypeAddresses($search_type) {
|
||||
if(!$this->id) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user