Skip to content

Commit

Permalink
#454 Update failed: apigee_devportal_kickstart_update_8008 (#481)
Browse files Browse the repository at this point in the history
Co-authored-by: phdhiren <[email protected]>
  • Loading branch information
divya-intelli and phdhiren authored Jul 15, 2021
1 parent de02a0e commit 43558a7
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions apigee_devportal_kickstart.install
Original file line number Diff line number Diff line change
Expand Up @@ -473,16 +473,16 @@ function apigee_devportal_kickstart_update_8008() {
if ($api_field_config->getLabel() === $field_config['old_label']) {
$definitions[$field_name]->getConfig('apidoc')->setLabel($field_config['label'])->save();
}
}

// Enable the field on the form display.
if (!$entity_form_display->getComponent($field_name)) {
$entity_form_display->setComponent($field_name, $field_config['form_display'])->save();
}
// Enable the field on the form display.
if (!$entity_form_display->getComponent($field_name)) {
$entity_form_display->setComponent($field_name, $field_config['form_display'])->save();
}

// Update the field on the view display.
if (!$entity_view_display->getComponent($field_name) && !empty($field_config['view_display'])) {
$entity_view_display->setComponent($field_name, $field_config['view_display'])->save();
// Update the field on the view display.
if (!$entity_view_display->getComponent($field_name) && !empty($field_config['view_display'])) {
$entity_view_display->setComponent($field_name, $field_config['view_display'])->save();
}
}
}
}
Expand Down

0 comments on commit 43558a7

Please sign in to comment.