Bugzilla – Attachment 7047 Details for
Bug 6885
Superlibrarian users can't delete items from another library when IndependantBranches
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 6885 Follow up patch, invert tested condition
Bug-6885-Follow-up-patch-invert-tested-condition.patch (text/plain), 1.09 KB, created by
Chris Cormack
on 2012-01-05 02:31:29 UTC
(
hide
)
Description:
Bug 6885 Follow up patch, invert tested condition
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2012-01-05 02:31:29 UTC
Size:
1.09 KB
patch
obsolete
>From 132eb73d4e7c8b2debf12a6e7f307e6c586a84b0 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Demians?= <f.demians@tamil.fr> >Date: Wed, 4 Jan 2012 18:09:34 +0100 >Subject: [PATCH] Bug 6885 Follow up patch, invert tested condition > >Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz> > >Not sure the brackets are nessecary, but I think I remember learning >bitwise operators have a lower priority than other relational >operators so wanted to make sure we notted the result of the bitwise >and, not the flag >--- > C4/Items.pm | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > >diff --git a/C4/Items.pm b/C4/Items.pm >index 8802a4c..cf716ab 100644 >--- a/C4/Items.pm >+++ b/C4/Items.pm >@@ -2211,7 +2211,7 @@ sub DelItemCheck { > if ($onloan){ > $error = "book_on_loan" > } >- elsif ( C4::Context->userenv->{flags} & 1 and >+ elsif ( !(C4::Context->userenv->{flags} & 1) and > C4::Context->preference("IndependantBranches") and > (C4::Context->userenv->{branch} ne > $item->{C4::Context->preference("HomeOrHoldingBranch")||'homebranch'}) ) >-- >1.7.5.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 6885
:
5460
|
5771
|
5839
|
5857
|
7039
|
7046
| 7047