Fixed saving edit_by in some Controllers
This commit is contained in:
+13
-2
@@ -3,8 +3,19 @@
|
||||
class Pop extends mfBaseModel {
|
||||
protected $forcestr = ['gps_lat','gps_long','vlan_public','vlan_nat','vlan_ipv6'];
|
||||
private $network;
|
||||
|
||||
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