Fixed saving edit_by in some Controllers
This commit is contained in:
@@ -16,7 +16,17 @@ class Order extends mfBaseModel {
|
||||
|
||||
private $shippingdate;
|
||||
|
||||
protected function afterSave() {
|
||||
protected function beforeUpdate($data) {
|
||||
if(!array_key_exists("edit_by", $data)) {
|
||||
$me = new User();
|
||||
$me->loadMe();
|
||||
$data["edit_by"] = $me->id;
|
||||
}
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
protected function afterSave() {
|
||||
if($this->billingaddress_id) {
|
||||
$this->getProperty("billingaddress")->generateFibuAccountNumber();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user