Fixed saving all null values in ContractconfigValue

This commit is contained in:
Frank Schubert
2022-12-15 21:02:59 +01:00
parent 9149a0f2cd
commit 33a5475d91

View File

@@ -6,6 +6,10 @@ class ContractconfigValue extends mfBaseModel {
public function set($new_value) {
$item = $this->getProperty("item");
$me = new User();
$me->loadMe();
$this->edit_by = $me->id;
if($new_value === null || strlen($new_value) == 0) {
$this->int = null;
$this->number = null;
@@ -25,10 +29,6 @@ class ContractconfigValue extends mfBaseModel {
return false;
}
$me = new User();
$me->loadMe();
$this->edit_by = $me->id;
return true;
}