From b1da6514e52a844bc5e111ce576bdf9ef2bc4f90 Mon Sep 17 00:00:00 2001 From: ValseD <34738344+ValseD@users.noreply.github.com> Date: Thu, 3 Oct 2019 12:30:28 +0200 Subject: [PATCH] Update Reportico.php --- src/Reportico.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Reportico.php b/src/Reportico.php index 0bd821d6..f56143f0 100755 --- a/src/Reportico.php +++ b/src/Reportico.php @@ -3674,7 +3674,8 @@ public function initialize() { $this->targets = array(); $this->assignment = array(); $this->criteria_links = array(); - $this->user_parameters = array(); + // http://www.reportico.org/forum/d/53993-how-to-pass-a-parameter-to-a-criteria-in-an-embedded-project/4 + // $this->user_parameters = array(); // an array of available databases to connect ot $this->available_connections = array(); $this->plugins = array(); @@ -3739,6 +3740,9 @@ public function execute($mode = false, $draw = true) $this->pdf_phantomjs_path = $sessionClass::registerSessionParam("pdf_phantomjs_path", $this->pdf_phantomjs_path); $this->pdf_delivery_mode = $sessionClass::registerSessionParam("pdf_delivery_mode", $this->pdf_delivery_mode); $this->user_parameters = $sessionClass::registerSessionParam("user_parameters", $this->user_parameters); + // http://www.reportico.org/forum/d/53993-how-to-pass-a-parameter-to-a-criteria-in-an-embedded-project/4 + $this->initial_execution_parameters = $sessionClass::registerSessionParam("initial_execution_parameters", $this->initial_execution_parameters); + $this->dropdown_menu = $sessionClass::registerSessionParam("dropdown_menu", $this->dropdown_menu); $this->static_menu = $sessionClass::registerSessionParam("static_menu", $this->static_menu); $this->charting_engine = $sessionClass::registerSessionParam("charting_engine", $this->charting_engine);