Bug 19638: Remove false positive obsolete reports (auth_header.marcxml)
Bug 17898 tries to help users identify reports affected by the move of marcxml to the biblio_metadata table, however, the auth_header table still uses the column name 'marcxml' and so reports as needing updated though it doesn't. C4::Reports::Guided::convert_sql only converts if the sql query contain biblioitems and marcxml. We should use the same regexp in the controler script. Test plan: Use a sql report that use auth_header.marcxml (see https://wiki.koha-community.org/wiki/SQL_Reports_Library) After the this the report should not be longer marked as obsolete on the report list view Replicated bug with the following SQL: select marcxml from auth_header; Patch applied correctly and functioned as expected. Signed-off-by: Dilan Johnpullé <dilan@calyx.net.au> Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
f03da2810c
commit
0d828094e8
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ elsif ( $phase eq 'Build new' ) {
|
|||
my $has_obsolete_reports;
|
||||
for my $report ( @$reports ) {
|
||||
$report->{results} = C4::Reports::Guided::get_results( $report->{id} );
|
||||
if ( $report->{savedsql} =~ m|marcxml| ) {
|
||||
if ( $report->{savedsql} =~ m|biblioitems| and $report->{savedsql} =~ m|marcxml| ) {
|
||||
$report->{seems_obsolete} = 1;
|
||||
$has_obsolete_reports++;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue