File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed
Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,22 @@ component {
6363 if (Len (local .appendToKey )) {
6464 for (local .item in local .appendToKey ) {
6565 if (IsDefined (local .item )) {
66- local .key & = Evaluate (local .item );
66+ scopeMap = {
67+ " request" : request ,
68+ " arguments" : arguments ,
69+ " application" : application ,
70+ " session" : session ,
71+ " variables" : variables
72+ };
73+
74+ // Extract scope name and variable name from local.item
75+ local .scopeName = listFirst (local .item , " ." );
76+ local .varName = listLast (local .item , " ." );
77+ if (structKeyExists (scopeMap , local .scopeName ) && structKeyExists (scopeMap [local .scopeName ], local .varName )) {
78+ local .key & = scopeMap [local .scopeName ][local .varName ];
79+ } else {
80+ throw (type = " Wheels.KeyNotFound" , message = " The `#local .item #` argument was not found." );
81+ }
6782 }
6883 }
6984 }
You can’t perform that action at this time.
0 commit comments