};
}
}
- if ($code == 6) {
- var_dump($sum_type);
- die;
- }
if (!$motivationValue) {
$motivationValue = new MotivationValue;
$motivationValue->motivation_id = $motivation->id;
}
switch ($sum_type) {
case MotivationCostsItem::DATA_TYPE_INT: { $motivationValue->value_int = $sum; break; }
- default: { $motivationValue->value_float = $sum; break; }
+ default: { $motivationValue->value_float = $sum; if ($code == 6) {
+ var_dump($sum_type);
+ die;
+ }; break; }
}
$motivationValue->save();
if ($motivationValue->getErrors()) {