[Koha-bugs] [Bug 18613] Deleting a Letter from a library as superlibrarian deletes the " All libraries" rule

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jul 7 11:57:45 CEST 2017


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

--- Comment #6 from Julian Maurice <julian.maurice at biblibre.com> ---
Comment on attachment 64616
  --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=64616
Bug 18613: Correct the behaviour

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

::: C4/Letters.pm
@@ +204,5 @@
>  
>  
> +    my $only_my_library = C4::Context->only_my_library;
> +    if ( $only_my_library and $branchcode ) {
> +        $branchcode = $only_my_library;

C4::Context->only_my_library is supposed to return a boolean value.
You should use C4::Context::mybranch() here

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


More information about the Koha-bugs mailing list