FIX: fix history handling - null values were not updated

This commit is contained in:
Michal Kváček
2016-03-31 21:11:51 +02:00
parent 5045dca3d4
commit acc7541ab9
3 changed files with 6 additions and 4 deletions
+2 -2
View File
@@ -39,8 +39,8 @@ class History implements HistoryHandler
break;
default:
return trans('admin/history.changedFromTo', [
'from' => $changeset->old_value,
'to' => $changeset->new_value
'from' => is_null($changeset->old_value) ? trans('admin/history.emptyValue') : $changeset->old_value,
'to' => is_null($changeset->new_value) ? trans('admin/history.emptyValue') : $changeset->new_value,
]);
break;
}