fixed saving edit_by in Contract/save
This commit is contained in:
@@ -822,6 +822,7 @@ class ContractController extends mfBaseController
|
||||
if ($mode == "add") {
|
||||
$contract = ContractModel::create($contract_data);
|
||||
} else {
|
||||
$contract->edit_by = $this->me->id;
|
||||
$contract->update($contract_data);
|
||||
}
|
||||
|
||||
@@ -851,6 +852,7 @@ class ContractController extends mfBaseController
|
||||
|
||||
//var_dump($contract);exit;
|
||||
|
||||
|
||||
$contract_id = $contract->save();
|
||||
if (!$contract_id) {
|
||||
$this->layout()->setFlash("Fehler beim Speichern.", "error");
|
||||
|
||||
Reference in New Issue
Block a user