not generating new SPIN when changing owner in Order

This commit is contained in:
Frank Schubert
2021-11-30 20:31:58 +01:00
parent af82db73cf
commit 29f63d41a7
2 changed files with 17 additions and 14 deletions

View File

@@ -15,6 +15,7 @@ if(!defined("FRONKDB")) {
class mfBaseModel {
public $id;
public $data;
public $_old_data;
private $create;
private $edit;
private $worker;
@@ -35,6 +36,7 @@ class mfBaseModel {
$this->log=mfLoghandler::singleton();
$this->table=get_class($this);
$this->data = new stdClass();
$this->_old_data = new stdClass();
if(defined("MFMODEL_USEFIELDPREFIX") && MFMODEL_USEFIELDPREFIX==true) {
$this->prefixfields=true;
@@ -67,7 +69,7 @@ class mfBaseModel {
|| $field=="edit") continue;
$this->data->$field=$value;
}
$this->id=$row->id;
$this->create=$row->create;
$this->edit=$row->edit;
@@ -76,6 +78,11 @@ class mfBaseModel {
$this->id=$row->$prop;
}
$this->_old_data = clone($this->data);
$this->_old_data->id = $this->id;
$this->_old_data->create = $this->create;
$this->_old_data->edit = $this->edit;
$this->mode = "update";
if(method_exists($this, "afterLoad")) {