Title:
Bug 70986:(Watson Migration Closure)Please add support for calling a component method using associative array notation
| View in TrackerStatus/Resolution/Reason: To Fix//EnhancementRequired
Reporter/Name(from Bugbase): Daemach Laratin / John Wilson (Daemach2)
Created: 12/13/2007
Components: Language, CFSCRIPT
Versions: 9.0
Failure Type: Unspecified
Found In Build/Fixed In Build: 0000 /
Priority/Frequency: Normal / Unknown
Locale/System: English / Win All
Vote Count: 18
Related Bugs:
CF-4035747 - Similar to
Problem:
Please add support for calling a component method using associative array notation. object[method](params)
Method:
{code:java}
<cfscript>
mailer = CreateObject("component", "active.cfc.emailNotifications");
if (bUpdated){
method = 'doProfileUpdateNotification';
} else {
method = 'doNewProfileNotification';
}
mailer[method](dataID);
</cfscript>
{code}
Result:
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3033950
External Customer Info:
External Company:
External Customer Name: John Wilson
External Customer Email: 629D14F146B7D7D7992015B9
External Test Config: 12/13/2007
Attachments:
Comments: