Bug 8509: allows the Expected status to be chosen back
authorAdrien Saurat <adrien.saurat@biblibre.com>
Thu, 20 Sep 2012 14:18:18 +0000 (16:18 +0200)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Thu, 21 Mar 2013 22:58:21 +0000 (18:58 -0400)
If a serial has been marked as received by mistake, it's now
possible to set it as an "Expected" serial again.

Signed-off-by: Melia Meggs <melia@test.bywatersolutions.com>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Passes all tests and QA script.

I did varoius tests on a subscription switching between the
different status (expected, arrived, late) and couldn't find
a bad side effect of this patch.

Note: The date arrived/date expected is not automatically reset,
but you can enter the date manually in the template, so I think
this could be handled in a separate bug.
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>

koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tt

index 3a64b11..6ab28c7 100644 (file)
@@ -197,6 +197,8 @@ $(document).ready(function() {
             [% END %]
             [% IF ( serialslis.status1 ) %]
               <option value="1" selected="selected">Expected</option>
+            [% ELSE %]
+              <option value="1">Expected</option>
             [% END %]
             [% IF ( serialslis.status2 ) %]
               <option value="2" selected="selected">Arrived</option>