-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 6.0-HF15, 7.3
-
Component/s: Layouts & Widgets
-
Tags:
-
Sprint:nxNag Sprint 7.4.5
-
Story Points:2
How to reproduce:
- create a new XML extension:
<require>org.nuxeo.ecm.platform.forms.layouts.webapp</require> <extension target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager" point="layouts"> <layout name="dndEdit"> <templates> <template mode="any">/layouts/layout_default_template.xhtml</template> </templates> <rows> <row> <widget>test_npe</widget> </row> </rows> <widget name="test_npe" type="text"> <labels> <label mode="any">Nature (SUPNXP-13968)</label> </labels> <translated>false</translated> <fields> <field>dc:nature</field> </fields> <widgetModes> <mode value="create">hidden</mode> </widgetModes> </widget> </layout> </extension>
- drag and (hold a few seconds) drop a file in a Folderish document, the smart import window opens
- select smart import with metadata (screenshot-1)
- click button continue (screenshot-2)
Here is a workaround:
<require>org.nuxeo.ecm.platform.forms.layouts.webapp</require> <extension target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager" point="layouts"> <layout name="dndEdit"> <templates> <template mode="any">/layouts/layout_default_template.xhtml</template> </templates> <rows> <row> <widget>dummy</widget> </row> <row> <widget>test_npe</widget> </row> </rows> <widget name="test_npe" type="text"> <labels> <label mode="any">Nature (SUPNXP-13968)</label> </labels> <translated>false</translated> <fields> <field>dc:nature</field> </fields> <widgetModes> <mode value="create">hidden</mode> </widgetModes> </widget> <widget name="dummy" type="text"> <labels> <label mode="any"> </label> </labels> <translated>false</translated> <fields> <field>dc:title</field> </fields> <widgetModes> <mode value="create">view</mode> </widgetModes> </widget> </layout> </extension>