createdAsString implicit fix needed in info.bundle.list.cfm

Description

If search query results is off, this throws error on the bundle admin page.

Please change #createdAsString# to #bundles.createdAsString# in info.bundle.list.cfm

Update: It appears this fix reveals more implicit scope errors.

In menu.cfm, the arguments are implicitly referenced, which needs this at the top:

<cfscript>
stMenu=arguments.stMenu;
adminType=arguments.adminType;
</cfscript>

variables.stText is defined in admin_layout.cfm, which appears to be the correct instance to refer to, but in web.cfm, you refer to it as just stText. Need this to fix:

<cfscript>
stText=variables.stText;
</cfscript>
<cfset navigation = stText.MenuStruct[request.adminType]>

I was able to view the bundles admin page under a more lucee-style configuration with these changes.

Environment

None

Activity

Show:
Bruce Kirkpatrick
November 19, 2018, 11:03 PM
Bruce Kirkpatrick
November 19, 2018, 11:23 PM

The extension applications page is also broken in 2 places. I fixed it. Here is another commit to cherry pick:
https://github.com/brucekirkpatrick/Lucee/commit/cdb0cdd77c284ae652de58f8793dfb76f985fe35

Zac Spitzer
September 9, 2019, 1:40 PM

ahh. I just filed a PR for this and other scoping problems

Michael Offner
January 24, 2020, 9:28 AM

Michael Offner
January 24, 2020, 9:29 AM

Fixed

Assignee

Michael Offner

Reporter

Bruce Kirkpatrick

Priority

Major

Labels

Fix versions

Sprint

None

Affects versions

Configure