Uploaded image for project: 'Campaign Manager'
  1. Campaign Manager
  2. CAMPMAN-21

No Default Position When Adding Component

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Medium
    • Resolution: Fixed
    • 3.1.1
    • 3.1.2
    • None

    Description

      Steps to reproduce

      1.  Create a new campaign and add an new creative item
      2.  Open the item for editing and add a component

      Expected results

      • The new component dialog is displayed with a default selected in the add before/after radio button group. This assumption is based on the behaviour of the Pages app which defaults to "after".

      Actual results

      • There is no default. Validation will force the user to select before or after.

      Workaround

      • One can define a new dialog and override the definition of the action addComponent found in campaign-manager/includes/apps/campaign-manager-app-detail-actions.yaml

      Development notes

      • The dialog is from pages-app. ie

      {{addComponent:
      $type: openDialogAction
      dialogId: pages-app:newComponent
      icon: icon-add-item
      availability:
      rules:
      addible:
      class: info.magnolia.pages.app.detail.action.availability.IsAreaAddibleRuleDefinition}}

      This uses the old v5 UI. Swapping to the v6 dialog from pages (note: not pages-app) produces an error because of the datasource used in the background.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              acordero Alberto Cordero
              chris.jennings Chris Jennings
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD

                  CI Builds

                    No builds found.