implemented new features for warehouseorderrequest
This commit is contained in:
@@ -92,6 +92,9 @@ class TTCrud extends mfBaseController {
|
||||
|
||||
|
||||
$columns = array_map(function ($column) {
|
||||
if (isset($column['type']) && (!isset($column['modal']) || !isset($column['modal']['type']))) {
|
||||
$column['modal']['type'] = $column['type'];
|
||||
}
|
||||
$newColumn = $column;
|
||||
unset($newColumn['required'], $newColumn['required_length'], $newColumn['regex']);
|
||||
return $newColumn;
|
||||
@@ -145,6 +148,10 @@ class TTCrud extends mfBaseController {
|
||||
continue;
|
||||
}
|
||||
|
||||
if ($row[$column['key']] === null || $row[$column['key']] === '') {
|
||||
continue;
|
||||
}
|
||||
|
||||
// if function customAutoComplete"COLUMN_KEY" is defined, we call it instead of the default
|
||||
$data = null;
|
||||
if (method_exists($this, 'customAutoComplete' . ucfirst($column['key']))) {
|
||||
|
||||
Reference in New Issue
Block a user