Ver Fonte

fixed bug in wfs order by

Piotr Labudda há 8 anos atrás
pai
commit
d261b7558e
1 ficheiros alterados com 1 adições e 0 exclusões
  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) {