Skip to content

Commit

Permalink
Fix error when no fields are updated
Browse files Browse the repository at this point in the history
  • Loading branch information
cedric-anne committed Sep 14, 2023
1 parent a030328 commit a43769b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions inc/container.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1320,6 +1320,7 @@ public static function constructHistory(
// -- update existing item --

// construct $updates
$updates = [];
if ($field_obj->updates) {
foreach ($field_obj->updates as $key) {
$updates[$key] = [0, $field_obj->oldvalues[$key], $field_obj->input[$key]];
Expand Down

0 comments on commit a43769b

Please sign in to comment.