View | Details | Raw Unified | Return to bug 8367
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt (-2 / +2 lines)
Lines 1541-1553 Link Here
1541
                            // Remove potential previous input added
1541
                            // Remove potential previous input added
1542
                            $(current_column).find("input").remove();
1542
                            $(current_column).find("input").remove();
1543
                            $(current_column).append("<input type='hidden' name='"+name+"' value='"+val+"' />");
1543
                            $(current_column).append("<input type='hidden' name='"+name+"' value='"+val+"' />");
1544
                        } else if ( i == 5 || i == 6 || i == 26 || i == 27 || i == 28 ) {
1544
                        } else if ( i == 5 || i == 6 || i == 26 || i == 27 || i == 28 || i == 31 ) {
1545
                            // If the value is not an integer for
1545
                            // If the value is not an integer for
1546
                            //     - "Current checkouts allowed"
1546
                            //     - "Current checkouts allowed"
1547
                            //     - "Current on-site checkouts allowed"
1547
                            //     - "Current on-site checkouts allowed"
1548
                            //     - "Holds allowed (total)"
1548
                            //     - "Holds allowed (total)"
1549
                            //     - "Holds allowed (daily)"
1549
                            //     - "Holds allowed (daily)"
1550
                            //     - "Holds per record (count)"
1550
                            //     - "Holds per record (count)"
1551
                            //     - "Holds pickup period (day)"
1551
                            // The value is "Unlimited" (or an equivalent translated string)
1552
                            // The value is "Unlimited" (or an equivalent translated string)
1552
                            // an it should be set to an empty string
1553
                            // an it should be set to an empty string
1553
                            if( !((parseFloat(itm_text) == parseInt(itm_text)) && !isNaN(itm_text)) ) {
1554
                            if( !((parseFloat(itm_text) == parseInt(itm_text)) && !isNaN(itm_text)) ) {
1554
- 

Return to bug 8367