Bug #22012 Bug Fixed

Picking existing image on file field in a grid causes all new rows to update.

Version: 3.4.1 Reporter: wehttam

This is an archived bug report. If you are experiencing a similar issue, upgrade to the latest release and if that does not solve the problem, submit a new bug report

Picking an existing image on file field within a grid causes all rows added since loading the page to update.
If it helps, I have a screen capture of a test install: https://mattrandl.es/ee341bug.mp4

To recreate, set up a channel using a field group containing a grid that only has one file field per row.
When trying to add a few rows to an item using existing images, upon clicking an image, all rows added since loading the edit page get updated to the same image.
When creating a new item, uploading file after file is working as expected.

This took some time to recreate because adding a single row and file to an entry works fine… it’s only when trying to add multiple rows of existing images that it’s failing.

Also, the following PHP errors are shown in the files window when no files are in the directory:

Undefined variable: files
ee/EllisLab/Addons/filepicker/views/ModalView.php, line 21

Invalid argument supplied for foreach()
ee/EllisLab/Addons/filepicker/views/ModalView.php, line 21

  • Additional information: adding a row to the grid & updating a separate file field in the same screen had the same effect i.e. latest row in grid + file field updated to same image.

    10th August, 2016 at 8:03am
  • This bug should have been fixed by the solution for this bug: https://support.ellislab.com/bugs/detail/22018/

    Kevin Cupp
    16th August, 2016 at 2:06pm
  • Currently working around this by saving the entry after adding each row to the grid.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases