Skip to content

Commit

Permalink
Merge branch 'hotfix-data_utils'
Browse files Browse the repository at this point in the history
  • Loading branch information
johnvanbreda committed Feb 16, 2022
2 parents 7d8eaee + 3c6ddab commit 76e483e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
4 changes: 2 additions & 2 deletions application/config/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@
*
* @var string
*/
$config['version'] = '6.12.18';
$config['version'] = '6.12.19';


/**
* Version release date.
*
* @var string
*/
$config['release_date'] = '2022-02-15';
$config['release_date'] = '2022-02-16';


/**
Expand Down
11 changes: 10 additions & 1 deletion modules/indicia_svc_data/controllers/services/data_utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,16 @@ public function __call($name, $arguments) {
}
}
$params = implode(', ', $action['parameters']);
echo json_encode($db->query("select $action[stored_procedure]($params);")->result_array(TRUE));
$r = json_encode($db->query("select $action[stored_procedure]($params);")->result_array(TRUE));
// Enable JSONP.
if (array_key_exists('callback', $_REQUEST)) {
$r = "$_REQUEST[callback]($r)";
header('Content-Type: application/javascript');
}
else {
header('Content-Type: application/json');
}
echo $r;
if (class_exists('request_logging')) {
request_logging::log('a', 'data', 'data_utils', $name, $this->website_id, $this->user_id, $tm, $db);
}
Expand Down

0 comments on commit 76e483e

Please sign in to comment.