// Actions that don't support fancy operators
NO_OPERATORS = ['create', 'update', 'delete', 'setvalue', 'getoptions', 'getactions', 'getfields'],
+ // Actions that don't support multiple values
+ NO_MULTI = ['delete', 'getoptions', 'getactions', 'getfields'],
+
// Operators with special properties
BOOL = ['IS NULL', 'IS NOT NULL'],
TEXT = ['LIKE', 'NOT LIKE'],
* @returns boolean
*/
function isMultiSelect(fieldName, operator) {
- if (isYesNo(fieldName)) {
+ if (isYesNo(fieldName) || _.includes(NO_MULTI, action)) {
return false;
}
if (_.includes(MULTI, operator)) {