Content Types that extends farcry.core.packages.types.types gets wrong data in library
Description
Environment
is related to
Activity

Knut Bewersdorff January 6, 2011 at 10:52 PM
The commited patch revision 11475 broke the "HandpickedRule".
Revision 11475
--------------
/FC/branches/p600/packages/formtools/join.cfc
/FC/branches/p600/webtop/js/farcryForm.cfm
/FC/branches/p600/webskin/fourq/displayLibrary.cfm
/FC/branches/p600/webskin/fourq/displayAjaxRefreshJoinProperty.cfm
/FC/branches/p600/webskin/fourq/displayLibraryAdd.cfm
/FC/branches/p600/webskin/fourq/displayLibraryTabs.cfm
Description:
-----------------
1. I select some "Facts" via the HanspickedRule. Everythings work fine.
2. Trying to "Select Webskin Templates" produces an error.
ERROR-OUTPUT
-------------------------
There was a problem with that last request!
Please push "back" on your browser or go back home
Error Details
Message Element '' is undefined in a CFML structure referenced as part of an expression.
Exception Type Expression
Detail
Tag Context
/var/www/web10/html/farcry/plugins/farcrycms/webskin/ruleHandpicked/update.cfm (line: 73)
/var/www/web10/html/farcry/core/packages/fourq/fourq.cfc (line: 456)
/var/www/web10/html/farcry/core/packages/fourq/fourq.cfc (line: 347)
/var/www/web10/html/farcry/core/packages/rules/rules.cfc (line: 156)
/var/www/web10/html/farcry/core/webskin/rules/editInPlace.cfm (line: 9)
/var/www/web10/html/farcry/core/packages/fourq/fourq.cfc (line: 456)
/var/www/web10/html/farcry/core/packages/fourq/fourq.cfc (line: 347)
/var/www/web10/html/farcry/core/webtop/conjuror/invocation.cfm (line: 152)

Frederic Altorfer December 21, 2010 at 11:10 PM
Changed the library picker behavior. Selecting, sorting or removing library items will not affect the objects relation table till you save.
Details
Details
Assignee

Reporter

If a content type extends farcry.core.packages.types.types the library/array functionality fails.
This does not happen when you create the first content for the content type, but it will for the second, third and so on and you need to change page.
Screen Cast for the bug (we are outputting the URL generated on line 107 in fourq/displayLibrary.cfm)
http://www.idl.no/internt/screencasts/FarCry-displayLibrary-getLink-bug.mov
One really easy fix for this is to change line 107 from:
<cfset formAction = application.fapi.getLink(type='#stobj.typename#', objectid='#stobj.objectid#', view='displayLibrary', urlParameters="filterTypename=#url.filterTypename#&property=#url.property#&ajaxmode=1") />
to:
<cfset formAction = "/index.cfm?type=#stobj.typename#&objectid=#stobj.objectid#&view=displayLibrary&filterTypename=#url.filterTypename#&property=#url.property#&ajaxmode=1" />
We are running FC6.0.8, don't know which other versions this bug affects...