You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by or...@apache.org on 2016/06/24 14:23:14 UTC

svn commit: r1750119 - /qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/query/QueryGrid.js

Author: orudyy
Date: Fri Jun 24 14:23:13 2016
New Revision: 1750119

URL: http://svn.apache.org/viewvc?rev=1750119&view=rev
Log:
QPID-7288: Update indexes for remaining cached data on delete event

Modified:
    qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/query/QueryGrid.js

Modified: qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/query/QueryGrid.js
URL: http://svn.apache.org/viewvc/qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/query/QueryGrid.js?rev=1750119&r1=1750118&r2=1750119&view=diff
==============================================================================
--- qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/query/QueryGrid.js (original)
+++ qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/query/QueryGrid.js Fri Jun 24 14:23:13 2016
@@ -342,6 +342,10 @@ define(["dojo/_base/declare",
                                                  "index": evt.start + i};
                                     store.emit("delete", event);
                                     currentResults.splice(i, 1);
+                                    updateIdToIndexMap(currentResults,
+                                                       idProperty,
+                                                       this._currentResultsIdToIndexMap,
+                                                       i);
                                     delete this._currentResultsIdToIndexMap[id];
                                 }
                             }



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org