From 6dffa0cdc9a7d0946c29b30137b7397bbac5fa2d Mon Sep 17 00:00:00 2001 From: Lyon3 Team Date: Tue, 26 Jan 2016 12:40:11 +0100 Subject: [PATCH] Bug 15643 - Every datepicker on serials expected date column updates top issue MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit delete 'expected' and 'supexpected' ids that don't seem useful anymore. Same thing for changeDate2 function Test plan : 1) Search a serial subscription from the Serials Home page 2)Go to serial collection page and make sure it has a mimimal bunch of already received or missing issues 3)Check some received issues to be sure to get extra issues (not only the extected one) in the serial edition page 4) Click on Edit serials button 5) Try to modify whatever date in 'Expected on' column (excepted first one) using datepicker : You can see that the top date of the column is updated instead of the choosen one. 6) Apply patch and redo 1 to 5 steps : now the right date is updated. Followed test plan, works as expected. Signed-off-by: Marc Véron Signed-off-by: Jonathan Druart Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com (cherry picked from commit 4c6214f5c943d8c2f12e7cf84c3965ddc4778956) Signed-off-by: Julian Maurice --- .../prog/en/modules/serials/serials-edit.tt | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tt index 8a4081a973..23f0bdc89a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tt @@ -41,11 +41,7 @@ function setStatus(serialid){ $("#status"+serialid).val("2").attr("selected","selected"); } function changeDate(elem, adate) { - $(elem).closest('tr').find('#expecteddate').val(adate); -} -function changeDate2(adate) { - var elem = document.getElementById("supexpecteddate"); - elem.value = adate; + $(elem).closest('tr').find('[name=planneddate]').val(adate); } $(document).ready(function() { @@ -139,7 +135,7 @@ $(document).ready(function() { - + [% IF ( serialslis.editdisable ) %] @@ -296,10 +292,10 @@ $(document).ready(function() { - + - [% IF ( newserialloo.status1 ) %] -- 2.39.5