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 1428-1434 Link Here
1428
                        // select the corresponding option
1428
                        // select the corresponding option
1429
                        $(current_column).find("select option").each(function(){
1429
                        $(current_column).find("select option").each(function(){
1430
                            opt = $(this).text().toLowerCase();
1430
                            opt = $(this).text().toLowerCase();
1431
                            opt = opt.replace(/ \(all\)$/,""); //If option is a parent, compare without (All)
1431
                            opt = opt.replace(/ \(\w*?\)$/,""); //If option is a parent, compare without (All) or the equivalent in other languages
1432
                            itm = itm.replace(/.*->(.*)/,"$1"); //If item type is part of a group we need to clear the parent description
1432
                            itm = itm.replace(/.*->(.*)/,"$1"); //If item type is part of a group we need to clear the parent description
1433
                            opt = opt.replace(/^\s*|\s*$/g,'');
1433
                            opt = opt.replace(/^\s*|\s*$/g,'');
1434
                            if ( opt == itm.toLowerCase() ) {
1434
                            if ( opt == itm.toLowerCase() ) {
1435
- 

Return to bug 30517