Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-22985

Uploading files with the ezpRelationListAjaxUploader is broken

    XMLWordPrintable

Details

    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

        Activity

          People

            Unassigned Unassigned
            jgamez jgamez
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: