Skip to content
Snippets Groups Projects

Issue #3423935: Update hook fails if content types have not been previously set

Open Issue #3423935: Update hook fails if content types have not been previously set
1 unresolved thread
Open Bryon Urbanec requested to merge issue/mercury_editor-3423935:issue-3423935 into 2.1.x
1 unresolved thread

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
10 10 */
11 11 function mercury_editor_update_9001() {
12 12 $mercury_settings = Drupal::configFactory()->getEditable('mercury_editor.settings');
13 foreach (array_keys($mercury_settings->get('content_types')) as $content_type) {
13
14 $content_types = $mercury_settings->get('content_types');
15
16 if (empty($content_type)) {
  • This needs work.

  • Bryon Urbanec added 1 commit

    added 1 commit

    • bc4e5ec1 - Made $content_type plural -> $content_types

    Compare with previous version

  • Please register or sign in to reply
    Loading