Details
Assignee
UnassignedUnassignedReporter
Colin JonesColin JonesLabels
Components
Fix versions
Priority
Minor
Details
Details
Assignee
Unassigned
UnassignedReporter
Colin Jones
Colin JonesLabels
Components
Fix versions
Priority
Created February 16, 2012 at 2:44 PM
Updated February 23, 2018 at 4:18 AM
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