From 1a54b87a2755a8c546d1f80b015d36af7ba2be11 Mon Sep 17 00:00:00 2001 From: Ryan Higgins Date: Tue, 16 Sep 2008 06:05:33 -0500 Subject: [PATCH] Bug 2365 : Inner counter not properly set for serials subscriptions not starting on first issue. Signed-off-by: Galen Charlton Signed-off-by: Chris Cormack --- .../prog/en/modules/serials/subscription-add.tmpl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tmpl index 9512b3053d..96a2e01d47 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tmpl @@ -811,6 +811,12 @@ function moreoptionsupdate(inputfield,rollover){ var fieldnumber = fieldname.slice(-5,-4); basefield.value = inputfield.value; + if(basefield.name.slice(0,-1) == 'lastvalue') { + // lastvalue seems to mean 'begins with', tracking the first received issue so + // we can recreate the whole historeven after receiving. innerloop is the var that + // actually tracks which issue we're on, though. + document.getElementById('innerloop'+fieldnumber).value = inputfield.value; + } var patternchoice = document.getElementById("numberpattern").value; switch(patternchoice){ case "2": -- 2.39.5