[Koha-bugs] [Bug 12019] funds displayed on acquisition home show funds of all branches

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Apr 14 14:03:30 CEST 2014


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

Jonathan Druart <jonathan.druart at biblibre.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #26898|0                           |1
        is obsolete|                            |

--- Comment #24 from Jonathan Druart <jonathan.druart at biblibre.com> ---
Created attachment 27088
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=27088&action=edit
Bug 12019: It should not be mandatory to define an owner if a fund is
restricted

Before this patch, the C4::Budgets::CanUserUseBudget assumed that
budget_owner_id was set if a restriction (budget_permission) exists.
see
        && $budget->{budget_owner_id}
        && $budget->{budget_owner_id} != $borrower->{borrowernumber}

Actually a restriction could exists on users and/or library without
being forced to defined an owner.

Test plan:
Create a fund A without restriction
Create a fund B restricted to an owner
Create a fund C restricted to a non defined owner
Create a fund D restricted to owner and users (try defining/no
defining an owner and/or users)
Create a fund E restricted to owner, users and library (try
defining/no defined an owner and/or users)

With different logged in users, try to show/edit these differents funds.
The restriction should be correctly applied.

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


More information about the Koha-bugs mailing list