[Koha-patches] [PATCH] [SIGNED-OFF] Bug 4920 - neworderempty.tmpl shouldn't call calcNeworderTotal() onload

Marcel de Rooy M.de.Rooy at rijksmuseum.nl
Mon Dec 20 13:08:23 CET 2010


From: Dobrica Pavlinusic <dpavlin at rot13.org>

Currently, modifying existing orders will recalculate values if exchange rate
has changed, which destroys previous data (our use case is just to modify
Planning value fields).

Since fields also have onChange event which also triggers caclNeworderTotal,
onload event seems redundant.

Signed-off-by: Marcel de Rooy <m.de.rooy at rijksmuseum.nl>
---
 .../prog/en/modules/acqui/neworderempty.tmpl       |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tmpl
index a76cb5c..45ef2ef 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tmpl
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tmpl
@@ -68,7 +68,7 @@ ff.submit();
 //]]>
 </script>
 </head>
-<body onload="calcNeworderTotal()">
+<body>
 
 <!-- TMPL_INCLUDE NAME="header.inc" -->
 <!-- TMPL_INCLUDE NAME="acquisitions-search.inc" -->
-- 
1.6.0.6



More information about the Koha-patches mailing list