hi guys,
i have the following cfc function...
<cffunction name="copy_option" output="false" access="public">
<cfargument name="product_id" type="numeric" required="true">
<cfargument name="existing_product_id" type="numeric" required="true">
<cfset getOptions = get_option(product_id=arguments.existing_product_id)>
<cfif getOptions.recordcount GT 0>
<cfloop query="getOptions">
<cfset add_option(product_id=arguments.product_id,
product_option_title=getOptions.product_option_title)>
</cfloop>
</cfif>
</cffunction>
add_option is another function within the same cfc.
if the getOptions returns 1 record it works fine. if it returns more than 1,
then it loops once then i get the following...
Variable ADD_OPTION is undefined.
can anyone help.
mike
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325476
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4