Koha/koha-tmpl/intranet-tmpl/prog/en/modules/reports
Owen Leonard f9965d53c2 Bug 2969 - Report Name should be mandatory for saved reports
This patch re-implements the database changes from the original patch
and adds an update for existing reports. It also reimplements the
client-side validation using the new built-in validation plugin and adds
coverage for SQL reports.

I have also added the "required" attribute to the SQL report textarea
since saving a report with no SQL triggers an error.

To test:

- Create a new guided report. Confirm that you cannot save your guided
  report without a report name.
- Create or edit a saved SQL report. Confirm that you cannot save your
  report without a name or without SQL.
- Confirm that the saved_sql table structure has been updated.

Signed-off-by: Liz Rea <wizzyrea@gmail.com>
Functional tests pass, database tables look correct to me.

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Even with JS disabled, the form can not be submitted without the
report name filled in.
However we are not checking this server side .. if this was the public
interface that would be a fail. I will leave this up to the RM to
decided if client side checks are ok for this. Bearing in mind we
weren't handling any sql errors properly server side before this.

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Amended patch: description of the updatedb entry

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
2014-10-24 09:47:37 -03:00
..
acquisitions_stats.tt Bug 12696: Remove CGI::scrolling_list from C4/Reports.pm 2014-08-15 14:44:50 -03:00
bor_issues_top.tt Bug 12587 - Improve output of filter information on patrons with the most checkouts report 2014-09-09 10:39:18 -03:00
borrowers_out.tt Bug 12707: Remove CGI::scrolling_list from some Reports 2014-08-15 14:47:23 -03:00
borrowers_stats.tt Bug 12707: Remove CGI::scrolling_list from some Reports 2014-08-15 14:47:23 -03:00
cat_issues_top.tt Bug 12707: Remove CGI::scrolling_list from some Reports 2014-08-15 14:47:23 -03:00
catalogue_out.tt
catalogue_stats.tt Bug 12696: Remove CGI::scrolling_list from C4/Reports.pm 2014-08-15 14:44:50 -03:00
dictionary.tt Bug 11672: Untranslatable dropdown on Guided Reports and dictionary 2014-09-23 15:32:21 -03:00
guided_reports_start.tt Bug 2969 - Report Name should be mandatory for saved reports 2014-10-24 09:47:37 -03:00
issues_avg_stats.tt Bug 12696: Remove CGI::scrolling_list from C4/Reports.pm 2014-08-15 14:44:50 -03:00
issues_by_borrower_category.tt
issues_stats.tt Bug 12707: Remove CGI::scrolling_list from some Reports 2014-08-15 14:47:23 -03:00
itemslost.tt
itemtypes.tt Bug 11718 - Use new DataTables include in reports templates 2014-03-12 17:33:25 +00:00
reports-home.tt Bug 12587: (qa followup) report name consistency 2014-09-09 10:48:59 -03:00
reservereport.tt
reserves_stats.tt Bug 12707: Remove CGI::scrolling_list from some Reports 2014-08-15 14:47:23 -03:00
serials_stats.tt Bug 12706: Remove CGI::scrolling_list from serial_stats.pl 2014-08-15 14:45:11 -03:00
stats_screen.tt