Thanks for that Phil, we'll get the code base updated shortly. GB On 31 Jan 2013 14:23, "Phillip R" <[email protected]> wrote:
> Hi Guys, > Just in case anyone else has been struggling with the Handpicked rule > issue I though I'd suggest that the solutions above (which I've been using) > are not necessary at all. The issue that causes the > [objectid] is part of this table's primary key and must be included in > stProperties > is actually the /packages/types/ruleHandpicked_aObjects.cfc which extends > farcry.core.packages.types.arrayTable. From what I can see it isn't > required as the webskin list is created in the ftEditAObjects with > a getWebskins call. > The ruleHandpicked_aObjects.cfc in the types folder seems to make an > objectid required on saving, which it doesn't have. Ergo the error. My > suggestion is to remove the ruleHandpicked_aObjects.cfc file completely and > do a restart of the app and you should be good to go. > > As a side note, if you have a rule in place and you add a new item to it, > the webskins all revert to the default (or top of the list) webskin. > If you replace <cfset thiswebskin = "" /> at around line 79 of > ruleHandpicked.cfc with: > <cftry> > <cfquery datasource="#application.dsn#" name="wk"> > SELECT webskin > from ruleHandpicked_aObjects > WHERE parentid='#stObject.objectid#' AND seq=#i# > </cfquery> > <cfset thiswebskin=wk.webskin> > <cfcatch><cfset thiswebskin = "" /></cfcatch> > </cftry> > The existing (saved) webskins will be retained (except for any just added). > > Phillip > > -- > 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 > --- > You received this message because you are subscribed to the Google Groups > "farcry-dev" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- 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 --- You received this message because you are subscribed to the Google Groups "farcry-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
