Fix numerazione

This commit is contained in:
Beppe 2022-09-01 17:48:05 +02:00
parent 4662905909
commit ab94b61fe1
1 changed files with 1 additions and 1 deletions

View File

@ -204,7 +204,7 @@ class Generator
//Lunghezza maschera
$mask_length = strlen($maschera);
$query = Manager::table($table)->select($field)->where($field, 'like', $maschera)->orderByRaw('LENGTH(numero_esterno) DESC')->orderByRaw($order);
$query = Manager::table($table)->select($field)->where($field, 'like', $maschera)->orderByRaw('LENGTH('.$field.') DESC')->orderByRaw($order);
foreach ($where as $and) {
$query->whereRaw($and);