Related Content resources not available to use until after object saved and re-edited

Description

In a content type you can add a related content (e.g. image/file etc) item using the library picker, however if you then go to the body text (for example), and try to add the resource using the related content button, the resources do not appear.

The resources only appear after you save the content item, and go back in to re-edit it.

Discussion from board here on why this may be:

On Feb 1, 2:00 pm, Sean Coyne <coyne.s...@gmail.com> wrote:
> OK. It looks like this is because the dmHTML object runs a function to
> return the images: getTeaserImageLibraryData However, this is only
> querying the database. Since the new record has not yet been committed to
> the database, this query doesn't return any records from the aObjectIds
> array. I believe this is due to a change made last year for the library
> picker. Previously, the library pickers would immediately write the data
> to the database when you select, remove, etc an item from the library. So
> this function would return those items because they were in the DB. Last
> year, a change was made so that it just held those items in the form and
> only when the parent record was saved would the array data be saved to the
> DB. This is why it works when you save the record then return. Since the
> data is in the DB, the query returns the records.
http://groups.google.com/group/farcry-dev/browse_thread/thread/97631c112be52636

Environment

None

Activity

Show:

Jeff Coughlin October 3, 2016 at 3:46 PM

Is there any chance this bug can be addressed in FC7?

Sean Coyne May 28, 2014 at 5:44 PM

This has reappeared in FarCry 7 http://screenr.com/hqCN

Sean Coyne May 28, 2014 at 5:44 PM

This has reappeared in FarCry 7. Demo: http://screenr.com/hqCN

Geoff Bowers March 7, 2013 at 4:34 AM

Cannot reproduce in the 6.2 maintenance branch. Assuming fixed.

Geoff Bowers July 20, 2012 at 5:20 AM

Pretty sure this was already fixed – definitely needs to be confirmed.

Details

Assignee

Reporter

Labels

Components

Affects versions

Priority

Created February 16, 2012 at 2:44 PM
Updated February 23, 2018 at 4:18 AM