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 924-930 Link Here
924
                        // select the corresponding option
924
                        // select the corresponding option
925
                        $(current_column).find("select option").each(function(){
925
                        $(current_column).find("select option").each(function(){
926
                            opt = $(this).text().toLowerCase();
926
                            opt = $(this).text().toLowerCase();
927
                            itm = itm.replace(/.*->(.*)/,"$1"); //If item type is part of a group we need to clear the parent description
927
                            opt = opt.replace(/^\s*|\s*$/g,'');
928
                            opt = opt.replace(/^\s*|\s*$/g,'');
929
                            console.log("opt "+opt);
930
                            console.log("itm "+itm.toLowerCase() );
928
                            if ( opt == itm.toLowerCase() ) {
931
                            if ( opt == itm.toLowerCase() ) {
929
                                $(this).attr('selected', 'selected');
932
                                $(this).attr('selected', 'selected');
930
                            }
933
                            }
931
- 

Return to bug 21946