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")