From 22fad96c0d2d857db4b77d760fed72cd082cabe4 Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Wed, 19 Aug 2026 08:49:18 +0000 Subject: [PATCH] Bug 35104: (RM follow-up) Fix regressions.t for Metadata's new auto-repair Koha::Biblio::Metadata->store() now repairs recoverable MARCXML faults before saving, so this test's invalid data no longer reaches the DB and detail.pl never hits a decoding error. Write the metadata directly via the DBIC row instead, bypassing store()'s repair, so the test still exercises detail.pl's own defensive handling of corrupt metadata. Test plan: prove t/db_dependent/selenium/regressions.t Signed-off-by: Pedro Amorim --- t/db_dependent/selenium/regressions.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/db_dependent/selenium/regressions.t b/t/db_dependent/selenium/regressions.t index 5cfb15a16a..5d3096225c 100755 --- a/t/db_dependent/selenium/regressions.t +++ b/t/db_dependent/selenium/regressions.t @@ -166,7 +166,7 @@ subtest 'Bibliographic record detail page must not explode even with invalid met 00satmrnu0 00ar19881981bdkldan }; - $biblio->metadata->metadata($invalid_data)->store(); + $biblio->metadata->_result->update( { metadata => $invalid_data } ); $driver->get( $base_url . "/catalogue/detail.pl?biblionumber=$biblionumber" );