@@ -346,8 +346,9 @@ |
||
| 346 | 346 | |
| 347 | 347 | protected function setMultiUnitFieldUnit($field, AbstractUnit $unit) |
| 348 | 348 | { |
| 349 | - if(isset($this->{$field.$this->getUnitAttributePostfix()})) |
|
| 350 | - $this->{$field.$this->getUnitAttributePostfix()} = $unit->getId(); |
|
| 349 | + if(isset($this->{$field.$this->getUnitAttributePostfix()})) { |
|
| 350 | + $this->{$field.$this->getUnitAttributePostfix()} = $unit->getId(); |
|
| 351 | + } |
|
| 351 | 352 | $this->forgetMultiUnitFieldUnitInput($field); |
| 352 | 353 | } |
| 353 | 354 | |