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.

I have implemented a fix for the removal issue.  Each li in the library 
display has a LI node like:

<li id="join-item-#i#" ... >

Since multiple arrays can be on the page, and potentially hold the same 
items we need to make this unique for each property.

I have modified it to:

<li id="join-item-#arguments.stMetadata.name#-#i#"

Now, the property name will be used in the ID of the LI so that it should 
be unique per page.

I have some additional testing to do on it, then I will commit it.  If 
either of you have logged a bug can you share it here so I can commit to 
it.  If not, if you could create one, that would be great, or I can create 
it when ready to commit the fix.

-- 
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: [email protected]
To unsubscribe, email: [email protected]
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry

Reply via email to