Change By: Eric Hechinger (10/Oct/14 12:16 PM)
Description: Defining an Upload field as supporting i18n generate error during D&D.

To reproduce: 
In admin central, go to 
/modules/dam-app/apps/assets/subApps/detail/editor/form/tabs/asset/fields/resource
add a property i18n = true

If you go now to the DAM app, and create a new document using D&D you will face exceptions and the upload will not be performed.


Reason is that the FileTransformer do not correctly support i18n.

Proposed patch in attachment.



In addition you will need to change the info.magnolia.ui.form.field.upload.AbstractUploadField<T>#setLocale(... implementation

    @Override
    public void setLocale(Locale locale) {
        if (getRootLayout() != null) {
            updateDisplay();
            getUpload().setReceiver((Receiver) getValue());
        }
    }


This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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: <dev-list-unsubscr...@magnolia-cms.com>
----------------------------------------------------------------

Reply via email to