Hi Blair,
I've ended up overwriting the setData and doing a check to see if the Course is the one calling the Fees. Feels like a bit of a hack compared to what you're suggesting though so I'd like to look at that one.
So do I put that in the cfcomponent or define it as a new property, and does that get applied to the Course?
What I don't want to do is switch off all approval processes, just the ones relating to Fees.
Cheers again,
James
On Sunday, February 26, 2012 11:14:29 PM UTC, Blair McK wrote:
You can set a formtool attribute bSyncStatus. I believe it's off by default, and is enabled for some HTML properties.
Blair
Hi group,
I've got a Content Type of "Course" and this has a relationship with another of type "Fees".
In the Course I've added an onApprove() event which I'm using to update some of the data in the related Fees however I've noticed a strange bug that when it is approved any associated Fees that are currently in draft are also being switched to approved as well.
No matter what I code into either the Course or Fee nothing seems to stop this action. Even an onStatusChange() in the Fees and trying to revert the change makes no difference.
I did notice on this wiki page that there is a thing called "Default Hook Cascade".
https://farcry.jira.com/wiki/display/FCDEV60/Event+Hooks
Is this what's happening here and is there anyway I can turn this off?
Cheers,
James