public function executeGetItem(\Library\HttpRequest $rq) { // Init result $result = $this->InitResponseWS(); $task_id = intval($this->dataPost["task_id"]); $task_selected = \Applications\PMTool\Helpers\TaskHelper::GetSessionTask($this->app()->user(), $task_id); \Applications\PMTool\Helpers\TaskHelper::SetSessionTask($this->user(), $task_selected); $result["task"] = $task_selected; $this->SendResponseWS($result, array("resx_file" => \Applications\PMTool\Resources\Enums\ResxFileNameKeys::Task, "resx_key" => $this->action(), "step" => $task_selected !== NULL ? "success" : "error")); }