From b8e9ce33182ffeff03ff713bc90bc37097a8a6f5 Mon Sep 17 00:00:00 2001 From: Christopher Lam Date: Wed, 27 Feb 2019 18:55:15 +0800 Subject: [PATCH] [report] deprecate report-without-guid handling --- gnucash/report/report-system/report.scm | 2 ++ gnucash/report/report-system/test/test-report-system.scm | 1 + 2 files changed, 3 insertions(+) diff --git a/gnucash/report/report-system/report.scm b/gnucash/report/report-system/report.scm index 82dd02f78d..ff9251f9c4 100644 --- a/gnucash/report/report-system/report.scm +++ b/gnucash/report/report-system/report.scm @@ -141,6 +141,8 @@ not found."))) (begin (if (gnc:report-template-name report-rec) (begin + (issue-deprecation-warning + "report-definition without guid is deprecated. please define report with guid.") ;; we've got an old style report with no report-id, give it an arbitrary one (gnc:report-template-set-report-guid! report-rec (guid-new-return)) diff --git a/gnucash/report/report-system/test/test-report-system.scm b/gnucash/report/report-system/test/test-report-system.scm index bb0895a47f..22ba89b4c9 100644 --- a/gnucash/report/report-system/test/test-report-system.scm +++ b/gnucash/report/report-system/test/test-report-system.scm @@ -36,6 +36,7 @@ ;; ----------------------------------------------------------------------- (define (test-check2) + ;; this tests deprecated features (display "\n*** Missing GUID detection:\n") (gnc:define-report 'version "1" 'name "Test Report Template")