From b552d7cd4eee99cf412512c7d56894af1032b9a9 Mon Sep 17 00:00:00 2001 From: Remington Steed Date: Wed, 27 Nov 2013 09:55:35 -0500 Subject: [PATCH] LP#842991 Reports needs to error when deleting fails When attempting to delete a report template, the reports interface incorrectly shows "Action Succeeded" even when it partly fails. If the user performing the delete does not own all the dependent reports and outputs, then the perl function returns 1 to indicate that some were deleted, but not all. However, the javascript that calls that function does not check for a return value of 1. This commit adds that check, and also improves the formatting of the related error messages. Signed-off-by: Remington Steed Signed-off-by: Dan Wells --- Open-ILS/web/opac/locale/en-US/reports.dtd | 8 ++++++-- Open-ILS/web/reports/oils_rpt_folder_window.js | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Open-ILS/web/opac/locale/en-US/reports.dtd b/Open-ILS/web/opac/locale/en-US/reports.dtd index 09a721bcb6..f5725157f6 100644 --- a/Open-ILS/web/opac/locale/en-US/reports.dtd +++ b/Open-ILS/web/opac/locale/en-US/reports.dtd @@ -143,8 +143,12 @@ - - + +