Skip to content
Snippets Groups Projects
Commit e4c95446 authored by alangrafu's avatar alangrafu
Browse files

Fixed problem with use of previously fetched data in special pages (services)

parent 46649188
No related branches found
No related tags found
No related merge requests found
...@@ -68,7 +68,7 @@ class SpecialFunction extends AbstractSpecialFunction{ ...@@ -68,7 +68,7 @@ class SpecialFunction extends AbstractSpecialFunction{
} }
$args["arg".$i]=$params[$i]; $args["arg".$i]=$params[$i];
} }
$data['params'] = $params; $results['params'] = $params;
$base = $conf['view']['standard']; $base = $conf['view']['standard'];
$base['type'] = $modelFile; $base['type'] = $modelFile;
$base['root'] = $conf['root']; $base['root'] = $conf['root'];
...@@ -90,14 +90,13 @@ class SpecialFunction extends AbstractSpecialFunction{ ...@@ -90,14 +90,13 @@ class SpecialFunction extends AbstractSpecialFunction{
$base['model']['directory'] = $conf['home'].$conf['model']['directory']; $base['model']['directory'] = $conf['home'].$conf['model']['directory'];
chdir($conf['model']['directory']); chdir($conf['model']['directory']);
$first = array(); $first = array();
Utils::queryFile($modelFile, $endpoints['local'], $data, $first); $results = array();
Utils::queryFile($modelFile, $endpoints['local'], $results, $first);
chdir($conf['home']); chdir($conf['home']);
$data = Utils::internalize($data); $results = Utils::internalize($results);
if(is_array($data)){ if(is_array($results)){
$results = Convert::array_to_object($data); $results = Convert::array_to_object($results);
}else{
$results = $data;
} }
Utils::processDocument($viewFile, $base, $results); Utils::processDocument($viewFile, $base, $results);
}catch (Exception $ex){ }catch (Exception $ex){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment