- Affected version
- 2.1.8 Patch 2
PHP:
'priority' => ['type' => self::STR, 'required' => 'mst_please_enter_valid_priority',
'allowedValues' => ['low', 'medium', 'high']
]
PHP:
if (isset($columnOptions['allowedValues']) && !in_array($value, $columnOptions['allowedValues']))
{
$error = \XF::phrase('please_enter_valid_value');
return false;
}