Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

workaround for dynamic struct keys #107

Open
wants to merge 2 commits into
base: p740
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
workaround for dynamic struct keys
MrFelna committed May 15, 2024

Verified

This commit was signed with the committer’s verified signature.
commit 190a7837b76d17eab255d722d6a9fe8266caeff6
4 changes: 3 additions & 1 deletion tags/webskin/view.cfm
Original file line number Diff line number Diff line change
@@ -84,7 +84,9 @@
<cfset st = o.getData(objectID = attributes.objectid) />
<cfelseif len(attributes.key)>
<cfparam name="session.stTempObjectStoreKeys" default="#structNew()#" />
<cfparam name="session.stTempObjectStoreKeys[attributes.typename]" default="#structNew()#" />
<cfif not structKeyExists(session.stTempObjectStoreKeys, attributes.typename) >
<cfset session.stTempObjectStoreKeys[attributes.typename] = structNew() >
</cfif>

<cfif structKeyExists(session.stTempObjectStoreKeys[attributes.typename], attributes.key)>
<cfif structKeyExists(Session.TempObjectStore, session.stTempObjectStoreKeys[attributes.typename][attributes.key])>