Added guard for template variables missing query field, Fixes #1501
This commit is contained in:
@@ -45,6 +45,9 @@ function (angular, _) {
|
||||
};
|
||||
|
||||
this.containsVariable = function(str, variableName) {
|
||||
if (!str) {
|
||||
return false;
|
||||
}
|
||||
return str.indexOf('$' + variableName) !== -1 || str.indexOf('[[' + variableName + ']]') !== -1;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user