On a layout widget, overriding a property for a given widgetMode does not work
if this property is already defined for widgetMode="any"
---------------------------------------------------------------------------------------------------------------------------------------
Key: NXP-8010
URL: https://jira.nuxeo.com/browse/NXP-8010
Project: Nuxeo Enterprise Platform
Issue Type: Bug
Components: Layouts / Widgets
Affects Versions: 5.5.x
Reporter: Antoine Taillefer
Assignee: Anahide Tchertchian
The following code does not work, tested on nuxeo-dm-5.5-I20111104_1115-tomcat.
Indeed, if the widget mode is "view", then the effective value for the "mode"
property is "edit", and not "edit" as we could expect it.
<widget name="carac_allergenes" type="layout">
...
<properties widgetMode="any">
<property name="name">carac_allergenes</property>
<property name="mode">edit</property>
</properties>
<properties widgetMode="view">
<property name="mode">view</property>
</properties>
</widget>
As a workaround, the following code works :
<widget name="carac_allergenes" type="layout">
...
<properties widgetMode="any">
<property name="name">carac_allergenes</property>
</properties>
<properties widgetMode="view">
<property name="mode">view</property>
</properties>
<properties widgetMode="edit">
<property name="mode">edit</property>
</properties>
</widget>
Thanks.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets