Added guard for template variables missing query field, Fixes #1501

This commit is contained in:
Torkel Ödegaard 2015-02-20 10:45:23 +01:00
parent 47c6c6e1b7
commit 596dfc304d

View File

@ -45,6 +45,9 @@ function (angular, _) {
};
this.containsVariable = function(str, variableName) {
if (!str) {
return false;
}
return str.indexOf('$' + variableName) !== -1 || str.indexOf('[[' + variableName + ']]') !== -1;
};