$_fieldAvailable = true;
continue;
}
- if(isset($v['searchtype']) && strpos($v['searchtype'],'Text') !== false) {
+ if(isset($v['searchtype']) && str_contains($v['searchtype'], 'Text')) {
$dataFields[$k] = $v['identifier'];
}
}
private function _saveField_hidden__combSearch(array $data, array $queryData, array $allInputData): array {
$searchData = '';
foreach($allInputData as $f=>$_d) {
- if(isset($_d['searchtype']) && strpos($_d['searchtype'],'Text') !== false) {
+ if(isset($_d['searchtype']) && str_contains($_d['searchtype'], 'Text')) {
$searchData .= " ".$_d['valueToSave'];
}
}