Title:
variables declared inside the function when tried as local. code assist doesn't list the variables.
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): / (Dattanand M Bhat)
Created: 01/30/2016
Components: Editor Features, Code assist
Versions: 2016
Failure Type:
Found In Build/Fixed In Build: Beta2_v31 /
Priority/Frequency: Normal / All users will encounter
Locale/System: English / Win All
Vote Count: 0
Problem:variables declared inside the function when tried as local. code assist doesn't list the variables.
Method: copy the below code in a cfm file
<cffunction name="deleteAttachment" access="public" output="false">
<cfargument name="event" type="any">
<cfset var issueid = arguments.event.getValue("issue")>
<cfset var attachmentid = arguments.event.getValue("attachmentid")>
<cfset var issue = beans.issueService.getIssue(issueid)>
<cfset var myprojects = arguments.event.getValue("myprojects")>
<cfset var attachments = issue.getAttachments()>
<cfset arguments.event.setValue("id", issueid)>
<cfset arguments.event.setValue("pid", issue.getProjectIdFk())>
<cfset a=local.>
</cffunction>
some where variable declaration in if <cfser a=local.
Result: doest not list the variables.
Expected: variables should be listed.
Workaround:
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4112094
External Customer Info:
External Company:
External Customer Name:
External Customer Email:
Attachments:
Comments: