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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt (-2 / +1 lines)
Lines 1404-1410 Link Here
1404
                        // select the corresponding option
1404
                        // select the corresponding option
1405
                        $(current_column).find("select option").each(function(){
1405
                        $(current_column).find("select option").each(function(){
1406
                            opt = $(this).text().toLowerCase();
1406
                            opt = $(this).text().toLowerCase();
1407
                            opt = opt.replace(/ \(all\)$/,""); //If option is a parent, compare without (All)
1407
                            opt = opt.replace(/ \(\w*?\)$/,""); //If option is a parent, compare without (All) or the equivalent in other languages
1408
                            itm = itm.replace(/.*->(.*)/,"$1"); //If item type is part of a group we need to clear the parent description
1408
                            itm = itm.replace(/.*->(.*)/,"$1"); //If item type is part of a group we need to clear the parent description
1409
                            opt = opt.replace(/^\s*|\s*$/g,'');
1409
                            opt = opt.replace(/^\s*|\s*$/g,'');
1410
                            if ( opt == itm.toLowerCase() ) {
1410
                            if ( opt == itm.toLowerCase() ) {
1411
- 

Return to bug 30517