Bug 2969 made report name mandatory for new reports but failed to do the same when editing existing reports.
Created attachment 32932 [details] [review] Bug 13161 - Report name should be mandatory when editing saved reports When Bug 2969 made report name required for SQL reports, it did so only for new reports. This patch makes the same requirement true when editing existing reports. Other changes: - Removed unused "type" setting from edit screen (already removed from creation form). - Added form field size attribute to report name field to match creation form. - Moved SQL textarea into its own fieldset and marked it as required, matching the report creation form. To test, apply the patch and edit an existing saved SQL report. You should be prevented from saving your report with either the report name or SQL field blank. Test with JavaScript enable and disabled. Confirm that after entering valid data your report runs correctly. Compare the new SQL report form with the update SQL report form. They should be structured the same.
Created attachment 32934 [details] [review] [SIGNED OFF] Bug 13161 - Report name should be mandatory when editing saved reports When Bug 2969 made report name required for SQL reports, it did so only for new reports. This patch makes the same requirement true when editing existing reports. Other changes: - Removed unused "type" setting from edit screen (already removed from creation form). - Added form field size attribute to report name field to match creation form. - Moved SQL textarea into its own fieldset and marked it as required, matching the report creation form. To test, apply the patch and edit an existing saved SQL report. You should be prevented from saving your report with either the report name or SQL field blank. Test with JavaScript enable and disabled. Confirm that after entering valid data your report runs correctly. Compare the new SQL report form with the update SQL report form. They should be structured the same. Signed-off-by: Nick Clemens <nick@quecheelibrary.org>
Created attachment 32956 [details] [review] [PASSED QA] Bug 13161 - Report name should be mandatory when editing saved reports When Bug 2969 made report name required for SQL reports, it did so only for new reports. This patch makes the same requirement true when editing existing reports. Other changes: - Removed unused "type" setting from edit screen (already removed from creation form). - Added form field size attribute to report name field to match creation form. - Moved SQL textarea into its own fieldset and marked it as required, matching the report creation form. To test, apply the patch and edit an existing saved SQL report. You should be prevented from saving your report with either the report name or SQL field blank. Test with JavaScript enable and disabled. Confirm that after entering valid data your report runs correctly. Compare the new SQL report form with the update SQL report form. They should be structured the same. Signed-off-by: Nick Clemens <nick@quecheelibrary.org> Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> Passes tests and QA script. Works as described.
Created attachment 32957 [details] [review] [PASSED QA] Bug 13161 - Report name should be mandatory when editing saved reports When Bug 2969 made report name required for SQL reports, it did so only for new reports. This patch makes the same requirement true when editing existing reports. Other changes: - Removed unused "type" setting from edit screen (already removed from creation form). - Added form field size attribute to report name field to match creation form. - Moved SQL textarea into its own fieldset and marked it as required, matching the report creation form. To test, apply the patch and edit an existing saved SQL report. You should be prevented from saving your report with either the report name or SQL field blank. Test with JavaScript enable and disabled. Confirm that after entering valid data your report runs correctly. Compare the new SQL report form with the update SQL report form. They should be structured the same. Signed-off-by: Nick Clemens <nick@quecheelibrary.org> Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> Passes tests and QA script. Works as described.
Patch pushed to master. Thanks Owen!