Details
-
Bug
-
Resolution: Duplicate
-
Critical
-
5.3, 5.3.1, 5.4-dev
-
None
Description
With EZP-22480, the creation of node assignments between an uploaded file and the parent node have been extracted from the publishObject method to the handleUpload method.
In the same class, the handleLocalFile method also calls the publishObject method, but doesn't add the node assignments part.
This causes the relation list Uploader to break when uploading a file directly in to an object relation list from a node.
How to reproduce
- Create a content class with a relationlist attribute
- Create a content object of this class
- Click on the "Upload file" button
- Select a file, upload it
- On the next screen, select a target location for the new node
- Click on "Choose this location"
-> The button becomes grayed out
-> The javascript console displays an error from the ajax request, an error 500 including the message
Fatal error: Call to a member function attribute() on a non-object in /var/www/ezpublish/web/extension/ezjscore/classes/ajaxuploader/ezprelationlistajaxuploader.php on line 220
Attachments
Issue Links
- duplicates
-
EZP-22546 Internal Server Error when uploading a file in a "Object Relations" attribute
- Closed