Skip to content

Commit dec0ab9

Browse files
committed
Fix getModelReference/0 and getModelReference/1
1 parent ac8ee50 commit dec0ab9

File tree

1 file changed

+3
-4
lines changed
  • javascript/frameworks/ui5/lib/advanced_security/javascript/frameworks/ui5

1 file changed

+3
-4
lines changed

javascript/frameworks/ui5/lib/advanced_security/javascript/frameworks/ui5/UI5.qll

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff 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() |

0 commit comments

Comments
 (0)