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

(-)a/koha-tmpl/intranet-tmpl/lib/koha/cateditor/marc-editor.js (-2 lines)
Lines 812-818 define( [ 'marc-record', 'koha-backend', 'preferences', 'text-marc', 'widget' ], Link Here
812
        createFieldOrdered: function( tag ) {
812
        createFieldOrdered: function( tag ) {
813
            var line, contents;
813
            var line, contents;
814
814
815
            //for ( line = 0; (contents = this.cm.getLine(line)); line++ ) {
816
            for ( line = 0; line <= this.cm.lastLine(); line++ ) {
815
            for ( line = 0; line <= this.cm.lastLine(); line++ ) {
817
                contents = this.cm.getLine(line);
816
                contents = this.cm.getLine(line);
818
                if ( contents && contents.substr(0, 3) > tag ) break;
817
                if ( contents && contents.substr(0, 3) > tag ) break;
819
- 

Return to bug 27308