[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 01:39:01 CET 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25026
--- Comment #10 from David Cook <dcook at prosentient.com.au> ---
(In reply to Jonathan Druart from comment #7)
> diff --git a/populate_db.pl b/populate_db.pl
> index 097bbda..7d07aa6 100755
> --- a/populate_db.pl
> +++ b/populate_db.pl
> @@ -92,8 +92,8 @@ if ( $marcflavour ne 'MARC21'
>
> my $dbh = C4::Context->dbh; # At the beginning to die if DB does not exist.
>
> -my ( $prefs_count ) = $dbh->selectrow_array(q|SELECT COUNT(*) FROM
> systempreferences|);
> -my ( $patrons_count ) = $dbh->selectrow_array(q|SELECT COUNT(*) FROM
> borrowers|);
> +my ( $prefs_count ) = eval { $dbh->selectrow_array(q|SELECT COUNT(*) FROM
> systempreferences|) };
> +my ( $patrons_count ) = eval { $dbh->selectrow_array(q|SELECT COUNT(*) FROM
> borrowers|) };
> if ( $prefs_count or $patrons_count ) {
> die "Database is not empty!";
> }
>
> You will need to apply this to koha-misc4dev first.
Can you clarify why we need to do this? Is koha-misc4dev currently broken?
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list