From b558a82cacddd03721ba7217fafd4b759b0acdea Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 21 Apr 2015 14:34:12 +0000 Subject: [PATCH] Do not remove rows that just have not changed. Fixes linking two rows caused them to disappear. --- phpgwapi/js/jsapi/egw_data.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/js/jsapi/egw_data.js b/phpgwapi/js/jsapi/egw_data.js index d477ad1b20..eafea22e06 100644 --- a/phpgwapi/js/jsapi/egw_data.js +++ b/phpgwapi/js/jsapi/egw_data.js @@ -186,7 +186,7 @@ egw.extend("data", egw.MODULE_APP_LOCAL, function (_app, _wnd) { // Tried to refresh a specific row and got nothing, so set it to null // (triggers update for listeners), then remove it - if(_result.data.length == 0 && typeof _context == "object" && _context.refresh) + if(_result.order.length == 0 && typeof _context == "object" && _context.refresh) { for(var i = 0; i < _context.refresh.length; i++) {