Bug 5549 : fixed save in smart-rules
authorElliott Davis <tdavis@uttyler.edu>
Wed, 19 Oct 2011 20:23:27 +0000 (20:23 +0000)
committerChris Cormack <chrisc@catalyst.net.nz>
Tue, 20 Mar 2012 00:30:56 +0000 (13:30 +1300)
koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt

index bbe29bc..7065337 100644 (file)
@@ -110,10 +110,7 @@ for="tobranch"><strong>Clone these rules to:</strong></label> <input type="hidde
                                                        </td>
                                                        <td>[% rule.issuelength %]</td>
                                                        <td>
-                                                         <select>
-                                                           <option value="hours" [% IF (rule.lengthunit == "hours") %] selected [% END %]>Hours</option>
-                                                           <option value="days" [% IF (rule.lengthunit != "hours") %] selected [% END %]>Days</option>
-                                                         </select>
+                                                           [% rule.lengthunit %]
                                                        </td>
                                                         <td>[% IF ( rule.hardduedate ) %]
                                                                [% IF ( rule.hardduedatebefore ) %]before [% rule.hardduedate %]</td>
@@ -154,7 +151,7 @@ for="tobranch"><strong>Clone these rules to:</strong></label> <input type="hidde
                     <td><input name="maxissueqty" size="3" /></td>
                     <td><input name="issuelength" size="3" /> </td>
                     <td>
-                     <select>
+                     <select name="lengthunit">
                        <option value="days" selected>Days</option>
                        <option value="hours">Hours</option>
                      </select>