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 990-996 Link Here
990
                        // select the corresponding option
990
                        // select the corresponding option
991
                        $(current_column).find("select option").each(function(){
991
                        $(current_column).find("select option").each(function(){
992
                            opt = $(this).text().toLowerCase();
992
                            opt = $(this).text().toLowerCase();
993
                            itm = itm.replace(/.*->(.*)/,"$1"); //If item type is part of a group we need to clear the parent description
993
                            opt = opt.replace(/^\s*|\s*$/g,'');
994
                            opt = opt.replace(/^\s*|\s*$/g,'');
995
                            console.log("opt "+opt);
996
                            console.log("itm "+itm.toLowerCase() );
994
                            if ( opt == itm.toLowerCase() ) {
997
                            if ( opt == itm.toLowerCase() ) {
995
                                $(this).attr('selected', 'selected');
998
                                $(this).attr('selected', 'selected');
996
                            }
999
                            }
997
- 

Return to bug 21946