Uploaded image for project: 'Blossom'
  1. Blossom
  2. BLOSSOM-68

Incorrect validation method called on creation of nested new item

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • Data Extension 1.0.1
    • data-extension
    • None
    • Magnolia 4.4.5
      magnolia-module-blossom 1.2.3
      magnolia-module-blossom-extension-data 1.0.1
      magnolia-module-data 1.6.4

    Description

      I have a calendar structure in the Data Module for which I have all created @DataTypeDialogFactory classes with @DialogValidator or @TabValidator methods.

      My test structure is as follows:
      Calendar name > Calendar year > Calendar month > Calendar item

      -The 'Calendar name' is the first item in this hierarchy. The validation works nicely. Checks if name is not empty (see attached CalendarFactory.java).
      -When I create a new 'Calendar year' item below 'Calendar name', the correct TabFactory is called (see attached CalendarYear.java). When I hit save though, the validation method of 'Calendar year' is not called. Instead, the validation method of 'Calendar name' is called in CalendarFactory.java. See the 2 screenshots.

      However, when I reopen an already created item, the validation works OK and the right method is called. So it seems to only fail when a new sub-node is created.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                tmattsson Tobias Mattsson
                erik.alphenaar Erik Alphenaar
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD