File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
javascript/frameworks/ui5/lib/advanced_security/javascript/frameworks/ui5 Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -495,12 +495,11 @@ class CustomController extends SapExtendCall {
495495 }
496496
497497 ModelReference getModelReference ( string modelName ) {
498- result = this .getAViewReference ( ) .getAMemberCall ( modelName )
498+ result = this .getAViewReference ( ) .getAMemberCall ( "getModel" ) and
499+ result .getArgument ( 0 ) .getALocalSource ( ) .getStringValue ( ) = modelName
499500 }
500501
501- ModelReference getAModelReference ( ) {
502- result = this .getAViewReference ( ) .getAMemberCall ( "getModel" )
503- }
502+ ModelReference getAModelReference ( ) { result = this .getModelReference ( _) }
504503
505504 RouterReference getARouterReference ( ) {
506505 exists ( ThisNode controllerThis | controllerThis .getBinder ( ) = this .getAMethod ( ) |
You can’t perform that action at this time.
0 commit comments