From 3853300c2f836f071bf99b64f41831eb7dd3bc6b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Mon, 14 Dec 2015 12:27:46 +0100 Subject: [PATCH] Csv-Import: Report nicht laden, wenn keine Report-Id vorhanden ist. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Eine nicht vorhandene Report-Id führte vorher zu einem Syntax-Fehler im Template, was wiederum dazu führte, dass der Spinner nicht aufhörte zu spinnen. --- templates/webpages/csv_import/_deferred_report.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/webpages/csv_import/_deferred_report.html b/templates/webpages/csv_import/_deferred_report.html index b7e5dd4b6..d4fde0885 100644 --- a/templates/webpages/csv_import/_deferred_report.html +++ b/templates/webpages/csv_import/_deferred_report.html @@ -19,7 +19,9 @@ } $(document).ready(function(){ - get_report('#csv_import_report', 'controller.pl', { action: 'CsvImport/report', 'no_layout': 1, 'id': [% SELF.background_job.data_as_hash.report_id %] }); + [%- IF SELF.background_job.data_as_hash.report_id %] + get_report('#csv_import_report', 'controller.pl', { action: 'CsvImport/report', 'no_layout': 1, 'id': [% SELF.background_job.data_as_hash.report_id %] }); + [%- END %] }); -- 2.20.1