Details
-
Bug
-
Resolution: Fixed
-
Critical
-
5.4.6
-
None
-
None
-
Mac OS 10.11.4, Safari, Java 8, Tomcat 8, IntelliJ 2016.1
-
-
Empty show more show less
-
Yes
-
Basel 50, Basel 50
-
2
Description
Using e.g. the following definition decoration for the security app:
/my-module/decorations/security-app/apps/security.yaml
subApps:
users:
actions:
editUser:
# Set custom users dialog
dialogName: 'my-module:apps/user'
addUser:
# Set custom users dialog
dialogName: 'my-module:apps/user'
When using a LinkFieldDefinition:
subApps:
detail:
class: info.magnolia.ui.contentapp.detail.DetailSubAppDescriptor
subAppClass: nl.trimm.portal.app.companies.CompanyDetailSubApp
editor:
nodeType:
icon: icon-node-content
name: mgnl:company
form:
tabs:
- name: main
fields:
- name: contacts
fields:
- name: contacts
class: info.magnolia.ui.form.field.definition.MultiValueFieldDefinition
transformerClass: info.magnolia.ui.form.field.transformer.multi.MultiValueChildNodeTransformer
field:
class: info.magnolia.ui.form.field.definition.LinkFieldDefinition
targetWorkspace: users
appName: security
identifierToPathConverter:
class: info.magnolia.ui.form.field.converter.BaseIdentifierToPathConverter
label: empty
Clicking on the "Select new" button in the MultivalueField will trigger the following exception:
error-log.txt![]()
It seems that it does not matter what is added to the decoration file. The "Select new" action always fails and even lets Magnolia crashes sometimes after.
Removing the definition decoration for the security app, will fix the "Select new" action again.
Adding the decorations directly into JCR will make the button action work.
Checklists
Attachments
Issue Links
- depends upon
-
MAGNOLIA-6693 Introduce proxy-based mutable wrapper utility as alternative to Cloner functionality
-
- Closed
-
-
MGNLUI-3431 Replace usages of cloner in favor of less fragile solution
-
- Closed
-
- is cloned by
-
MAGNOLIA-6716 yaml decoration of existing jcr browser subapp
-
- Closed
-