1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-06-05 22:09:38 +02:00

Miglioramento ricerche Datatables

Miglioramento delle ricerche Datatables in modo da rendere il sistema più comprensibile.
This commit is contained in:
Thomas Zilio
2018-09-27 10:15:04 +02:00
parent 8ccdd70622
commit 4298e84d90
5 changed files with 95 additions and 62 deletions

View File

@@ -354,3 +354,15 @@ function getURLPath()
return slashes($path);
}
/**
* Sostituisce i caratteri speciali per la ricerca attraverso le tabelle Datatables.
*
* @param string $field
*
* @return string
*/
function searchFieldName($field)
{
return str_replace([' ', '.'], ['-', ''], $field);
}