@@ -, +, @@ - Go to Reports -> Create from SQL. - Add a report which is based on an older db structure. The example I found was: SELECT biblionumber, ExtractValue(marcxml,'//datafield/@tag/text()[substring(.,1,1) = "5"]') as 'notes' FROM biblioitems HAVING notes <> '' - Save the report and go to the list of saved reports. There should be an "Update" column in the table, with a message about your newly-added report: "This report seems obsolete, it uses biblioitems.marcxml field." - Clicking the "Update SQL" button should trigger a modal window that shows the before an after versions of the report. There should be no error in the browser console. Unfortunately the diff will not display because of a separate bug in svc/convert_report --- .../prog/en/modules/reports/guided_reports_start.tt | 1 + svc/convert_report | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt @@ -1477,6 +1477,7 @@ [% INCLUDE 'datatables.inc' %] [% IF ( saved1 ) %] [% INCLUDE 'columns_settings.inc' %] + [% Asset.js( "lib/jsdiff/jsdiff.min.js" ) | $raw %] [% END %] [% Asset.js( "lib/codemirror/codemirror.min.js" ) | $raw %] [% Asset.js( "lib/codemirror/overlay.min.js" ) | $raw %] --- a/svc/convert_report +++ a/svc/convert_report @@ -19,10 +19,10 @@ use Modern::Perl; -use C4::Auth; use C4::Reports::Guided; use Koha::Reports; -use C4::Output; +use C4::Auth qw( get_template_and_user get_session ); +use C4::Output qw( output_html_with_http_headers ); use CGI qw ( -utf8 ); my $query = CGI->new(); --