Incorrect validation method called on creation of nested new item
-----------------------------------------------------------------
Key: BLOSSOM-68
URL: http://jira.magnolia-cms.com/browse/BLOSSOM-68
Project: Magnolia Blossom Module
Issue Type: Bug
Components: data-extension
Affects Versions: Data Extension 1.0.1
Environment: Magnolia 4.4.5
magnolia-module-blossom 1.2.3
magnolia-module-blossom-extension-data 1.0.1
magnolia-module-data 1.6.4
Reporter: Erik Alphenaar
Assignee: Tobias Mattsson
Priority: Major
Attachments: CalendarFactory.java, CalendarYearFactory.java,
screenshots.zip
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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
----------------------------------------------------------------
For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------