Saving edit_by in ContractController
This commit is contained in:
@@ -197,8 +197,9 @@ class ContractController extends mfBaseController
|
||||
}
|
||||
|
||||
$contract->cancel_date = $cancel_date->getTimestamp();
|
||||
$contract->edit_by = $this->me->id;
|
||||
if(!$contract->save()) {
|
||||
$this->layout()->setFlash("Verlinkten Vertrag $link_id nicht gefunden", "error");
|
||||
$this->layout()->setFlash("Fehler beim Speichern", "error");
|
||||
$this->redirect("Contract", "cancel", ["contract_id" => $contract->id]);
|
||||
}
|
||||
|
||||
@@ -214,6 +215,7 @@ class ContractController extends mfBaseController
|
||||
}
|
||||
|
||||
$link_contract->cancel_date = $cancel_date->getTimestamp();
|
||||
$link_contract->edit_by = $this->me->id;
|
||||
if(!$link_contract->save()) {
|
||||
$this->layout()->setFlash("Fehler beim Speichern von verlinktem Vertrag", "warning");
|
||||
}
|
||||
@@ -465,6 +467,7 @@ class ContractController extends mfBaseController
|
||||
|
||||
if($contract_cancel_date) {
|
||||
$contract->cancel_date = $contract_cancel_date->getTimestamp();
|
||||
$contract->edit_by = $this->me->id;
|
||||
$contract->save();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user