* Fix issue with submit matching when argName used

This commit is contained in:
Bryan Ashby 2015-07-13 13:41:21 -06:00
parent 9f86bdd856
commit 316a9c8b7f
5 changed files with 15 additions and 12 deletions

View file

@ -411,12 +411,14 @@ ViewController.prototype.loadFromMenuConfig = function(options, cb) {
//
// * actionValue is a Object:
// a) All key/values must exactly match
// b) value is null; The key (view ID) must be present
// b) value is null; The key (view ID or "argName") must be present
// in formValue. This is a wildcard/any match.
// * actionValue is a Number: This represents a view ID that
// must be present in formValue.
// * actionValue is a string: This represents a view with
// "argName" set that must be present in formValue.
//
if(_.isNumber(actionValue)) {
if(_.isNumber(actionValue) || _.isString(actionValue)) {
if(_.isUndefined(formValue[actionValue])) {
return false;
}