Koha-clms/acqui
Galen Charlton 4c3032a22c Bug 10258: fix permissions check for setting basket group for order basket
Improve the code that displays and allows staff to
set the basket group from the basket details page
for a closed basket.

Prior to this patch, a staff member who did not
have the group_manage acquisition permission would
still see a control to change the group that the
basket belongs to; attempting to change the group
would present with with a login page.

This patch also does some tidying of how basket group
details are passed to the template.

To test:

[1] Create an order basket and close it.  Do
    not assign it to a basket group.
[2] View the basket details while logged in as
    a staff user who has the order_manage acquisitions
    permission but not the group_manage.  The
    displayed basket group should be "No group".
[3] Switch to a staff user who also has the
    group_manage permission, then view the basket
    details again.  The basket group field should
    now be a select input that allows you to change
    the basket group.
[4] Change the basket group.  Verify that the basket group
    you selected is now displayed as the current group
    for that order basket.  The basket group delivery and
    billing place fields should also now be displayed.
[5] Close the basket group set in the previous step, then
    view the basket details again.  This time, the basket
    group name should be displayed with a suffix of " (closed)",
    and no input to change the group should be displayed.
[6] Swith to a staff user who does not have the group_manage
    permission, view the basket details, and verify that
    the basket name is displayed with a suffix of " (closed)".

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit 44364db8d5)
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
(cherry picked from commit dfbb9890d9)
Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
(cherry picked from commit dfbb9890d9)
2013-08-04 19:00:22 -03:00
..
pdfformat Bug 5356: Followup Change font in the layout3pages pdf 2012-10-17 17:43:11 +02:00
acqui-home.pl Bug 7304: More permissions for budgets 2012-06-27 16:25:44 +02:00
addorder.pl Bug 9236 : Redirect to the parcel page after deleting an item/order 2013-02-01 21:19:14 +13:00
addorderiso2709.pl Bug 9432: Plack changes for acqui/addorderiso2409.pl 2013-02-09 12:21:42 +13:00
basket.pl Bug 10258: fix permissions check for setting basket group for order basket 2013-08-04 19:00:22 -03:00
basketgroup.pl Bug 7449: billingplace and freedeliveryplace not saved when creating a new basketgroup 2013-04-14 19:31:28 +12:00
basketheader.pl Bug 9364: fixes billing/delivery addresses for new baskets 2013-02-01 21:15:41 +13:00
booksellers.pl Bug 9824: Make it possible to apply/cancel switch 2013-06-13 22:29:32 -03:00
check_budget_total.pl Bug 5385: POD Cleanups (part 1) 2010-11-12 10:06:55 +13:00
check_duplicate_barcode_ajax.pl Bug 6963: Corrects a problem when a new order is created with a duplicate barcode. 2011-11-04 10:22:28 +01:00
check_uniqueness.pl Bug 7178: Follow-up Improve order item creation 2012-05-14 16:16:13 +02:00
currency.pl Fix FSF address in directory acqui/ 2010-03-16 20:17:51 -04:00
fetch_sort_dropbox.pl Bug 8629: update of statistics fields on fund selection in order creation/edition 2012-09-14 16:57:02 +02:00
finishreceive.pl Bug 8903: Pass invoiceid to ModReceiveOrder 2012-10-24 15:17:30 +02:00
histsearch.pl Bug 7018 : need all acq permissions to search 2013-03-29 19:41:51 +13:00
invoice.pl Bug 5339: ergonomic changes 2012-09-20 09:46:50 +02:00
invoices.pl Bug 5339: perltidy on added files 2012-09-18 22:42:23 +02:00
lateorders.pl Bug 8652: Followup: add a default value for date_from 2012-10-09 11:27:42 +02:00
modordernotes.pl Bug 7166: Adds edit order notes when the basket is closed 2012-03-20 16:45:37 +01:00
neworderbiblio.pl Bug 6994: Wrong 'no budget defined' alert 2011-11-06 11:43:30 +01:00
neworderempty.pl Bug 7228: can't add items in an order with Modify 2013-05-14 20:38:52 +12:00
newordersuggestion.pl Bug 4330 : Fixing FSF address and copyright headers for acqui/ 2012-05-28 17:54:18 +02:00
ordered.pl Bug 7735: removal of C4::Dates when unused 2012-03-20 18:11:04 +01:00
orderreceive.pl Bug 9923 - correction of a bug due to bz 7129 2013-05-11 10:39:04 +12:00
parcel.pl Bug 10317: improve display when order receiving page is given an invalid invoiceid 2013-07-14 11:45:57 -03:00
parcels.pl Bug 10152: Default sorting wrong in parcels.pl 2013-05-08 19:48:12 +12:00
spent.pl Bug 5339: Invoices management improvement 2012-09-18 22:42:15 +02:00
supplier.pl Bug 5335 - More granular VAT 2012-09-20 18:09:53 +02:00
uncertainprice.pl Fix FSF address in directory acqui/ 2010-03-16 20:17:51 -04:00
updatesupplier.pl Bug 5335 - More granular VAT 2012-09-20 18:09:53 +02:00
z3950_search.pl Bug 8570 follow-up removing tabs & improving indentation 2012-10-09 17:34:58 +02:00