Add transmitted parameter to info responses
[misc/kostenrechnung] / ajax / ajax.php
index 2919669..69f1167 100644 (file)
@@ -268,7 +268,8 @@ function get_infos($mask)
   while (preg_match('/\{([^\}]*)\}/', $sql, $matches))
     $sql = str_replace('{'.$matches[1].'}', $_POST[$matches[1]], $sql);
 
-  return array('info' => query_db($sql));
+  return array('info' => query_db($sql),
+              'parameter' => $_POST);
 }
 
 if (empty($_POST['func']))