Fixed saving edit_by in some Controllers

This commit is contained in:
Frank Schubert
2025-01-24 15:04:24 +01:00
parent 22bd84663a
commit 39cf386638
53 changed files with 556 additions and 61 deletions
+13 -2
View File
@@ -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) {