Recalculate the query in case it contains session variables
authorJoey Schulze <joey@infodrom.org>
Sat, 27 Feb 2010 17:16:35 +0000 (18:16 +0100)
committerJoey Schulze <joey@infodrom.org>
Sat, 27 Feb 2010 17:16:35 +0000 (18:16 +0100)
ajax/ricoXMLquery.php

index 1886515..e8a9f74 100644 (file)
@@ -32,6 +32,10 @@ if (empty($id)) {
 } elseif (!OpenDB()) {\r
   ErrorResponse(htmlspecialchars($oDB->LastErrorMsg));\r
 } else {\r
+  $fname = substr($id,5);\r
+  load_mask($fname);\r
+  grid_sql($fname, $mask);\r
+\r
   $filters=isset($_SESSION[$id . ".filters"]) ? $_SESSION[$id . ".filters"] : array();\r
   $oDB->DisplayErrors=false;\r
   $oDB->ErrMsgFmt="MULTILINE";\r