not generating new SPIN when changing owner in Order
This commit is contained in:
@@ -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")) {
|
||||
|
||||
Reference in New Issue
Block a user