We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac8ee50 commit dec0ab9Copy full SHA for dec0ab9
1 file changed
javascript/frameworks/ui5/lib/advanced_security/javascript/frameworks/ui5/UI5.qll
@@ -495,12 +495,11 @@ class CustomController extends SapExtendCall {
495
}
496
497
ModelReference getModelReference(string modelName) {
498
- result = this.getAViewReference().getAMemberCall(modelName)
+ result = this.getAViewReference().getAMemberCall("getModel") and
499
+ result.getArgument(0).getALocalSource().getStringValue() = modelName
500
501
- ModelReference getAModelReference() {
502
- result = this.getAViewReference().getAMemberCall("getModel")
503
- }
+ ModelReference getAModelReference() { result = this.getModelReference(_) }
504
505
RouterReference getARouterReference() {
506
exists(ThisNode controllerThis | controllerThis.getBinder() = this.getAMethod() |
0 commit comments