@@ -185,9 +185,12 @@ Ext4.define('LDK.panel.SingleSubjectFilterType', {
185185 // Remove from notFound array if found
186186 var subjIndex = this . notFound . indexOf ( row [ this . aliasTable . aliasColumn ] ) ;
187187 if ( subjIndex === - 1 && this . caseInsensitive ) {
188- subjIndex = this . notFound . findIndex ( nf => {
189- return row [ this . aliasTable . aliasColumn ] . toLowerCase ( ) === nf . toLowerCase ( )
190- } ) ;
188+ for ( var i = 0 ; i < this . notFound . length ; i ++ ) {
189+ if ( row [ this . aliasTable . aliasColumn ] . toLowerCase ( ) === this . notFound [ i ] . toLowerCase ( ) ) {
190+ subjIndex = i ;
191+ break ;
192+ }
193+ }
191194 }
192195
193196 if ( subjIndex !== - 1 ) {
@@ -200,9 +203,12 @@ Ext4.define('LDK.panel.SingleSubjectFilterType', {
200203 if ( row [ this . aliasTable . idColumn ] !== row [ this . aliasTable . aliasColumn ] ) {
201204 var index = this . subjects . indexOf ( row [ this . aliasTable . aliasColumn ] ) ;
202205 if ( index === - 1 && this . caseInsensitive ) {
203- index = this . subjects . findIndex ( subj => {
204- return row [ this . aliasTable . aliasColumn ] . toLowerCase ( ) === subj . toLowerCase ( )
205- } ) ;
206+ for ( var i = 0 ; i < this . subjects . length ; i ++ ) {
207+ if ( row [ this . aliasTable . aliasColumn ] . toLowerCase ( ) === this . subjects [ i ] . toLowerCase ( ) ) {
208+ index = i ;
209+ break ;
210+ }
211+ }
206212 }
207213
208214 if ( index !== - 1 ) {
@@ -225,9 +231,12 @@ Ext4.define('LDK.panel.SingleSubjectFilterType', {
225231 // Remove from notFound array if found
226232 var idIndex = this . notFound . indexOf ( row [ this . aliasTable . idColumn ] ) ;
227233 if ( idIndex === - 1 && this . caseInsensitive ) {
228- idIndex = this . notFound . findIndex ( nf => {
229- return row [ this . aliasTable . idColumn ] . toLowerCase ( ) == nf . toLowerCase ( )
230- } ) ;
234+ for ( var i = 0 ; i < this . notFound . length ; i ++ ) {
235+ if ( row [ this . aliasTable . idColumn ] . toLowerCase ( ) === this . notFound [ i ] . toLowerCase ( ) ) {
236+ idIndex = i ;
237+ break ;
238+ }
239+ }
231240 }
232241
233242 // TODO: Update this and LDK.Utils.splitIds when the case sensitive cache issues are fixed
0 commit comments