To allow for empty fileset-field cells within a row (because another row contains data for the fileset column we are trying to validate), this adds a validation method validate_presence_within_fileset, which:
-checks cells to the left and right of the currently-validating field, within the current row, looking for the presence of any data within the current fileset
-this allows us to determine whether or not the validate_presence validation should be run for the current field
Also adds gsub to replace tab characters with newlines, because Mars uses vertical tabs in open-ended description fields
To allow for empty fileset-field cells within a row (because another row contains data for the fileset column we are trying to validate), this adds a validation method
validate_presence_within_fileset
, which:-checks cells to the left and right of the currently-validating field, within the current row, looking for the presence of any data within the current fileset -this allows us to determine whether or not the
validate_presence
validation should be run for the current fieldAlso adds gsub to replace tab characters with newlines, because Mars uses vertical tabs in open-ended description fields