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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt (-1 / +3 lines)
Lines 946-952 Link Here
946
                        // select the corresponding option
946
                        // select the corresponding option
947
                        $(current_column).find("select option").each(function(){
947
                        $(current_column).find("select option").each(function(){
948
                            opt = $(this).text().toLowerCase();
948
                            opt = $(this).text().toLowerCase();
949
                            itm = itm.replace(/.*->(.*)/,"$1"); //If item type is part of a group we need to clear the parent description
949
                            opt = opt.replace(/^\s*|\s*$/g,'');
950
                            opt = opt.replace(/^\s*|\s*$/g,'');
951
                            console.log("opt "+opt);
952
                            console.log("itm "+itm.toLowerCase() );
950
                            if ( opt == itm.toLowerCase() ) {
953
                            if ( opt == itm.toLowerCase() ) {
951
                                $(this).attr('selected', 'selected');
954
                                $(this).attr('selected', 'selected');
952
                            }
955
                            }
953
- 

Return to bug 21946