[-] WS : fixed ?schema=blank (performance issue)

This commit is contained in:
Damien Metzger
2013-06-19 10:18:54 +02:00
parent 1c2d2a0d87
commit 73800bad09
+1 -1
View File
@@ -1227,7 +1227,7 @@ class WebserviceRequestCore
$filters = $this->manageFilters();
/* If we only need to display the synopsis, analyzing the first row is sufficient */
if (isset($this->urlFragments['schema']) && $this->urlFragments['schema'] == 'synopsis')
if (isset($this->urlFragments['schema']) && in_array($this->urlFragments['schema'], array('blank', 'synopsis')))
$filters = array('sql_join' => '', 'sql_filter' => '', 'sql_sort' => '', 'sql_limit' => ' LIMIT 1');
$this->resourceConfiguration['retrieveData']['params'][] = $filters['sql_join'];