[Koha-bugs] [Bug 25026] RaiseError must be set for the UI

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Dec 3 10:53:46 CET 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25026

Jonathan Druart <jonathan.druart at bugs.koha-community.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|Signed Off                  |Needs Signoff

--- Comment #14 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
The installer was broken!

This follow-up should do it.
We need to test `reset_all` and the install process. Also hit
circ/pendingreserves.pl which should explode when the install is done (see the
"trick" in the commit message)

Now the change in misc4dev is:
diff --git a/populate_db.pl b/populate_db.pl
index 097bbda..563cb28 100755
--- a/populate_db.pl
+++ b/populate_db.pl
@@ -92,6 +92,8 @@ if (     $marcflavour ne 'MARC21'

 my $dbh = C4::Context->dbh; # At the beginning to die if DB does not exist.

+my $HandleError = $dbh->{HandleError};
+$dbh->{HandleError} = sub { return 1 };
 my ( $prefs_count ) = $dbh->selectrow_array(q|SELECT COUNT(*) FROM
systempreferences|);
 my ( $patrons_count ) = $dbh->selectrow_array(q|SELECT COUNT(*) FROM
borrowers|);
 if ( $prefs_count or $patrons_count ) {


To hide the 2 errors that will be risen when the DB is empty.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list