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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt (-1 / +1 lines)
Lines 1133-1138 Link Here
1133
                        // select the corresponding option
1133
                        // select the corresponding option
1134
                        $(current_column).find("select option").each(function(){
1134
                        $(current_column).find("select option").each(function(){
1135
                            opt = $(this).text().toLowerCase();
1135
                            opt = $(this).text().toLowerCase();
1136
                            opt = opt.replace(/ \(all\)$/,""); //If option is a parent, compare without (All)
1136
                            itm = itm.replace(/.*->(.*)/,"$1"); //If item type is part of a group we need to clear the parent description
1137
                            itm = itm.replace(/.*->(.*)/,"$1"); //If item type is part of a group we need to clear the parent description
1137
                            opt = opt.replace(/^\s*|\s*$/g,'');
1138
                            opt = opt.replace(/^\s*|\s*$/g,'');
1138
                            if ( opt == itm.toLowerCase() ) {
1139
                            if ( opt == itm.toLowerCase() ) {
1139
- 

Return to bug 28986