Bugzilla – Attachment 5010 Details for
Bug 6690
If multiple issues are received in serials-edit.pl, changing the status of any issue changes the date of the first issue.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED-OFF] Bug 6690: If multiple issues are received in serials-edit.pl, changing the status of any issue changes the date of the first issue.
SIGNED-OFF-Bug-6690-If-multiple-issues-are-receive.patch (text/plain), 3.60 KB, created by
Nicole C. Engard
on 2011-08-14 23:49:43 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 6690: If multiple issues are received in serials-edit.pl, changing the status of any issue changes the date of the first issue.
Filename:
MIME Type:
Creator:
Nicole C. Engard
Created:
2011-08-14 23:49:43 UTC
Size:
3.60 KB
patch
obsolete
>From 0661e899cdb6b934e1c6ec27a4f601712ac51d0f Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Fr=C3=A9d=C3=A9rick=20Capovilla?= <frederick.capovilla@sys-tech.net> >Date: Sun, 14 Aug 2011 21:42:52 +0200 >Subject: [PATCH] [SIGNED-OFF] Bug 6690: If multiple issues are received in serials-edit.pl, changing the status of any issue changes the date of the first issue. >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >If multiple issues are in the list, changing the status of any issue in >the table would always change the "Expected on" date of the first issue. >Modified the javascript so the date is modified on the correct row. > >Reimplementation of Patch for 3.4.x >Patch for 3.2.x from Frédérick Capovilla > >Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com> >--- > .../prog/en/modules/serials/serials-edit.tt | 9 ++++----- > 1 files changed, 4 insertions(+), 5 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 304c6ca..f82f791 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 >@@ -61,9 +61,8 @@ function HideItems(index,labelindex) { > function setStatus(serialid){ > $("#status"+serialid).val("2").attr("selected","selected"); > } >-function changeDate(adate) { >- var elem = document.getElementById("expecteddate"); >- elem.value = adate; >+function changeDate(elem, adate) { >+ $(elem).closest('tr').find('#expecteddate').val(adate); > } > function changeDate2(adate) { > var elem = document.getElementById("supexpecteddate"); >@@ -228,9 +227,9 @@ $(document).ready(function() { > <select name="status" size="1" disabled="disabled"> > [% ELSE %] > [% IF ( serialslis.serialsadditems ) %] >- <select name="status" size="1" id="status[% serialslis.serialid %]" onchange="if (this.value==2){unHideItems('items'+[% serialslis.subscriptionid %][% serialslis.serialid %],'label[% serialslis.subscriptionid %][% serialslis.serialid %]','[% serialslis.serialid %]'); changeDate('[% serialslis.arriveddate %]')} else if (this.value==7){changeDate('[% serialslis.arriveddate %]')} else { HideItems('items'+[% serialslis.subscriptionid %]+[% serialslis.serialid %],'label[% serialslis.subscriptionid %][% serialslis.serialid %]'); changeDate('[% serialslis.planneddate %]')}" > >+ <select name="status" size="1" id="status[% serialslis.serialid %]" onchange="if (this.value==2){unHideItems('items'+[% serialslis.subscriptionid %][% serialslis.serialid %],'label[% serialslis.subscriptionid %][% serialslis.serialid %]','[% serialslis.serialid %]'); changeDate(this, '[% serialslis.arriveddate %]')} else if (this.value==7){changeDate(this, '[% serialslis.arriveddate %]')} else { HideItems('items'+[% serialslis.subscriptionid %]+[% serialslis.serialid %],'label[% serialslis.subscriptionid %][% serialslis.serialid %]'); changeDate(this, '[% serialslis.planneddate %]')}" > > [% ELSE %] >- <select name="status" size="1" id="status[% serialslis.serialid %]" onchange="if (this.value==2 || this.value==7){changeDate('[% serialslis.arriveddate %]')} else {changeDate('[% serialslis.planneddate %]')}" > >+ <select name="status" size="1" id="status[% serialslis.serialid %]" onchange="if (this.value==2 || this.value==7){changeDate(this, '[% serialslis.arriveddate %]')} else {changeDate(this, '[% serialslis.planneddate %]')}" > > [% END %] > [% END %] > [% IF ( serialslis.status1 ) %] >-- >1.7.2.3
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 6690
:
4914
|
5002
| 5010