$report_id = 100; } } } else { $report_id = $request->get('report_id'); if ($report_id != user_get_preference('artifact_browse_report' . $atid)) { user_set_preference('artifact_browse_report' . $atid, $report_id); user_del_preference('artifact_browse_order' . $atid); user_del_preference('artifact_brow_cust' . $atid); $GLOBALS['Response']->redirect('?atid=' . $atid . '&group_id=' . $group_id); } } } else { if (!$request->exist('report_id')) { $arf = new ArtifactReportFactory(); $report_id = $arf->getDefaultReport($atid); } else { $report_id = $request->get('report_id'); } } // Number of artifacts displayed on screen in one chunk. // Default 50 $chunksz = (int) $request->get('chunksz'); if (!$chunksz) { $chunksz = 50; } // Make sure offset values, search and multisort flags are defined // and have a correct value $offset = $request->get('offset'); if (!$offset || $offset < 0) { $offset = 0;