[Koha-bugs] [Bug 15635] Move the patron images related code to Koha::Patron::Images

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Jan 25 18:50:41 CET 2016


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15635

--- Comment #5 from M. Tompsett <mtompset at hotmail.com> ---
Comment on attachment 47125
  --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=47125
Bug 15635: Koha::Patron::Images - Remove RmPatronImage

Review of attachment 47125:
 --> (http://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=15635&attachment=47125)
-----------------------------------------------------------------

::: tools/picture-upload.pl
@@ +163,5 @@
> +    my $deleted = eval {
> +        Koha::Patron::Images->find( $borrowernumber )->delete;
> +    };
> +    if ( $@ or not $deleted ) {
> +        warn "Image for patron '$borrowernumber' has not been deleted";

Should we not distinguish between $@ and not $deleted?

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


More information about the Koha-bugs mailing list