MVC: CSVListField: switch to Y,N instead of a numeric value for consistency

This commit is contained in:
Stephan de Wit 2023-02-24 15:13:35 +01:00
parent 06416714cf
commit e0c36de4e4

View File

@ -84,7 +84,11 @@ class CSVListField extends BaseField
*/
public function setMaskPerItem($value)
{
$this->internalMaskPerItem = $value;
if (strtoupper(trim($value)) == "Y") {
$this->internalMaskPerItem = true;
} else {
$this->internalMaskPerItem = false;
}
}
/**