Skip to content

Commit

Permalink
Log fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
govindmaloo committed Jul 10, 2023
1 parent 4b51e94 commit 9835fe6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ function (CivicthemeUpdateHelper $helper) use (&$sandbox, $old_field_configs, $f
$helper->updateFormDisplay('paragraph', $bundle, $config, $form_display_group_config[$bundle]);
}

if ($sandbox['#finished']) {
if ($sandbox['#finished'] >= 1) {
$paragraph_types = array_keys($form_display_config);
$log = new TranslatableMarkup("Content from field 'field_c_p_column_count' was moved to 'field_c_p_list_column_count'.
Content from field 'field_c_p_fill_width' was moved to 'field_c_p_list_fill_width'.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public function update(array &$sandbox, $entity_type, array $entity_bundles, cal

$sandbox['#finished'] = empty($sandbox['entities']) ? 1 : ($sandbox['max'] - count($sandbox['entities'])) / $sandbox['max'];

if ($sandbox['#finished']) {
if ($sandbox['#finished'] >= 1) {
// Finiished callback.
$log = call_user_func($finished_callback, $this);

Expand Down

0 comments on commit 9835fe6

Please sign in to comment.