Explorar o código

fixed bug in wfs order by

Piotr Labudda %!s(int64=8) %!d(string=hai) anos
pai
achega
d261b7558e
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      SE/se-lib/AclQueryBuilder.php

+ 1 - 0
SE/se-lib/AclQueryBuilder.php

@@ -201,6 +201,7 @@ class AclQueryBuilder {
     $this->orderBy = [];
     if (!$orderBy) return $this;
     // ID A,COL_X D,COL_Y A,...
+	if (false !== strpos($orderBy, '+')) $orderBy = str_replace('+', ' ', $orderBy);
     $sortByEx = array_map('trim', explode(',', $orderBy));
     $sortByEx = array_filter($sortByEx, ['V', 'filterNotEmpty']);
     foreach ($sortByEx as $sortPart) {