COU-582 - Media items in Grid RTE do not get transferred/resolved

Created by Rune Strand 13 Jun 2017, 15:25:10 Updated by Mikkel Holck Madsen 15 Jun 2017, 11:21:52

Relates to: COU-583

Subtask of: COU-521

What did you do? Picked a media item using the media picker dialog on Grid RTEand then deployed from development to live environment. [file:1.png]

What happened? The media item was not transferred. Id and path remained the same. [file:2.png] - [file:3.png]

What did you expect to happen? I expected the media item to show in the live environment. Just as it does with RTE data type. [file:4.png] - [file:5.png] - [file:6.png]

Seems to have been fixed in earlier version

6 Attachments


Claus Jensen 14 Jun 2017, 11:10:35


When media is stored using the JSON string instead of just storing the media path, it will not be found with the current SQL query. If nothing was found using the first (and most efficient query) it will try fetching a media item stored with the JSON object (searching for the src: /filepath property instead.

Claus Jensen 14 Jun 2017, 13:45:40

updated the PR with some SQL optimizations.

Mikkel Holck Madsen 15 Jun 2017, 11:21:41

PR Merged, works as expected

Priority: Normal

Type: Bug

State: Fixed




Backwards Compatible: True

Fix Submitted:

Affected versions: 3.1.2

Due in version: 3.1.3

Sprint: Sprint 61

Story Points:

Cycle: 2