Skip to content
Snippets Groups Projects
Commit a87fc508 authored by Alex ORLUC's avatar Alex ORLUC
Browse files

FIX #4732 add specific select if alt_identifier

parent 63782aee
No related branches found
No related tags found
No related merge requests found
...@@ -76,7 +76,13 @@ class request extends dbquery ...@@ -76,7 +76,13 @@ class request extends dbquery
foreach ($select[$value] as $subvalue) foreach ($select[$value] as $subvalue)
{ {
$field = $subvalue; $field = $subvalue;
$field_string .= $table.".".$field.","; $field_string .= $table.".".$field.",";
//fix order by alt_identifier
if($field == 'alt_identifier'){
$field_string .= "regexp_replace(alt_identifier, '[^a-zA-Z]', '', 'g')".","."regexp_replace(alt_identifier, '[^0-9]', '', 'g')::int".",";
}
} }
//Query fields and table names have been wrote in 2 strings //Query fields and table names have been wrote in 2 strings
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment