$new_position = '--'; //don't change anything } } $dao->updateResultRanking($id, $report_id, $new_position); } } if ($request->isAjax()) { exit; } } else { if ($resizecolumns = $request->get('resizecolumns')) { if (is_array($resizecolumns)) { $report_id = $request->getValidated('report_id', 'uint'); $arf = new ArtifactReportFactory($ath); if ($report = $arf->getArtifactReportHtml($report_id, $atid)) { //Todo: check that the user can update the report $dao = new ArtifactReportFieldDao(CodendiDataAccess::instance()); $dao->resizeColumns($report_id, $resizecolumns); } } if ($request->isAjax()) { exit; } } else { require './browse.php'; } } } } break;
} else { if ($report_id != user_get_preference('artifact_browse_report' . $atid)) { user_set_preference('artifact_browse_report' . $atid, $report_id); } } } // If still not defined then force it to system 'Default' report if (!isset($report_id) || !$report_id) { $report_id = 100; } // Create factories $report_fact = new ArtifactReportFactory(); // Retrieve HTTP GET variables and store them in $prefs array $prefs = $art_field_fact->extractFieldList(false); // Create the HTML report object $art_report_html = $report_fact->getArtifactReportHtml($report_id, $atid); // {{{ (SR #832) If it does not exist, use default report instead. if (!$art_report_html) { $report_id = 100; if (user_isloggedin()) { user_set_preference('artifact_browse_report' . $atid, $report_id); } $art_report_html = $report_fact->getArtifactReportHtml($report_id, $atid); } // }}} /* ================================================== Make sure all URL arguments are captured as array. For simple search they'll be arrays with only one element at index 0 (this will avoid to deal with scalar in simple search and array in advanced which would greatly complexifies the code) ================================================== */