[0005209] Reports: fixed broken reports after session timeout.
[fa-stable.git] / reporting / includes / reports_classes.inc
index 276d988ea8fe4db56f9ee603201eae31cd580452..dd76d84de2cb71a260bbde7d21c7c37b73235cfe 100644 (file)
@@ -100,7 +100,7 @@ class BoxReports
                                                . "<form method='POST' action='$action' target='_blank'>\n";
                                        $st_params .= submit('Rep'.$report->id,  
                                                _("Display: ") . access_string($report->name, true),
-                                               false, '', $SysPrefs->pdf_debug ? false : 'default process') . hidden('REP_ID', $report->id, false).'<br><br>';
+                                               false, '', $SysPrefs->pdf_debug ? false : 'default popup') . hidden('REP_ID', $report->id, false).'<br><br>';
                                        $st_params .= $this->getOptions($report->get_controls(), $report->id);
                                        $st_params .= "\n<input type=hidden name='Class' value=".$cur_class.">"
                                                ."\n</form></td></tr></table>\n";
@@ -276,9 +276,13 @@ class BoxReports
                                case 'GL_ACCOUNTS':
                                        return gl_all_accounts_list($name);
 
+                               case 'BANK_ACCOUNTS_NO_FILTER':
                                case 'BANK_ACCOUNTS':
-                                       return bank_accounts_list($name);
-                                       
+                                       if ($type == 'BANK_ACCOUNTS_NO_FILTER')
+                                               return bank_accounts_list($name, null, false, _("All"));
+                                       else
+                                               return bank_accounts_list($name);
+
                                case 'DIMENSION':
                                        return dimensions_list($name, null, false, ' ', false, true, 0);