From: Ian Walls <[email protected]>

The Javascript to remove an owner from a budget cleared the name from the 
screen, but did not remove
the actual value in the form, so when saving, the original owner was retained.

This patch adds the command to set the value to ''.

Signed-off-by: Katrin Fischer <[email protected]>
I could reproduce the bug on current master. Patch fixes the problem, fund
owners can now be added and removed without any problems.
Thx for providing a test plan!
---
 .../prog/en/modules/admin/aqbudgets.tt             |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt 
b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt
index ca623f3..c27a880 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt
@@ -11,6 +11,7 @@
 
     function ownerRemove(f) {
         document.getElementById('budget_owner_name').innerHTML = '';
+        document.getElementById('budget_owner_id').value = '';
     }
 
     function Check(f) {
-- 
1.7.5.4

_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to