From: <Se...@us...> - 2009-07-17 19:43:51
|
Revision: 4008 http://jaffa.svn.sourceforge.net/jaffa/?rev=4008&view=rev Author: SeanZ Date: 2009-07-17 19:43:43 +0000 (Fri, 17 Jul 2009) Log Message: ----------- add empty records test to avoid error being thrown. Modified Paths: -------------- trunk/JaffaRIA/source/html/js/extjs/ux/grid/MultiGroupingStore.js Modified: trunk/JaffaRIA/source/html/js/extjs/ux/grid/MultiGroupingStore.js =================================================================== --- trunk/JaffaRIA/source/html/js/extjs/ux/grid/MultiGroupingStore.js 2009-07-17 00:42:49 UTC (rev 4007) +++ trunk/JaffaRIA/source/html/js/extjs/ux/grid/MultiGroupingStore.js 2009-07-17 19:43:43 UTC (rev 4008) @@ -412,7 +412,7 @@ delete this.nextKey; // Need to compare the prior next key, to the first row that was added // This could trigger a complete reload - if(nextKey) { + if(nextKey && r.length>0) { var id = this.reader.meta.id; // Get key field name from reader console.debug("Store.loadRecords : Refresh Check...",id,r[0].data[id],nextKey.data[id]); if(r[0].data[id] != nextKey.data[id]) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |