Commit 6c3db442 authored by Cédric Anne's avatar Cédric Anne Committed by Johan Cwiklinski

Fix location items list; fixes #5830

parent 506f74aa
......@@ -351,7 +351,7 @@ class Location extends CommonTreeDropdown {
$criteria = [
'SELECT' => [
"$table.id",
"$crit AS type"
new \QueryExpression($DB->quoteValue($crit) . ' AS ' . $DB->quoteName('type')),
],
'FROM' => $table,
'WHERE' => [
......@@ -366,7 +366,7 @@ class Location extends CommonTreeDropdown {
$union->addQuery([
'SELECT' => [
'id',
new \QueryExpression("'$type' AS type")
new \QueryExpression($DB->quoteValue($type) . ' AS ' . $DB->quoteName('type')),
],
'FROM' => $table,
'WHERE' => [
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment