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

Return to bug 21946