Bug 12508: adding an error message if a contract cannot be removed
commitde03c263f0579d28a735e3b1261121e439263a82
authorYohann Dufour <dufour.yohann@gmail.com>
Tue, 1 Jul 2014 07:59:36 +0000 (1 09:59 +0200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Thu, 10 Jul 2014 13:44:06 +0000 (10 10:44 -0300)
tree119a8aca1907a4595c75cdc2a5e5fba164a86767
parent3acbead04930c502b3e406d54b3a513088ddd098
Bug 12508: adding an error message if a contract cannot be removed

If a contract cannot be removed, no errors is displayed. Now, it displays an dialog messag error and the list of contracts.

Test plan:
1) Log on with a superlibrarian permission
2) Go on the page acqui/supplier.pl (Acquisitions > Button "New vendor")
3) Record a vendor with a nonzero "name"
4) Go on the page admin/aqcontract.pl (click on the "Contracts" item in the menu)
5) Click on the button "New" > "Contract" and record a new one
6) Click on "New" > "Basket" and record a basket by selectioning the created contract
7) Click on the contract name, then click on the "Contracts" item in the left menu
8) Try to delete this contract, an error is displayed : "Contract has not been deleted. Maybe a basket linked to this contract exists."
9) Delete the basket linked to the contract
10) Delete the contract, no errors is displayed

Signed-off-by: Juhani Seppälä <jseppal@student.uef.fi>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Passes QA script an tests.
Also tested adding, editing and deleting unused contracts.

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
admin/aqcontract.pl
koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqcontract.tt