From 685353a6f0cc8b3d8c7d2b9b0b60367c23afa2e0 Mon Sep 17 00:00:00 2001 From: rolux Date: Fri, 6 Feb 2015 10:43:58 +0000 Subject: [PATCH] fix #2659 (Entities dialog: Name in list doesn't update when updating name) --- static/js/entitiesDialog.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/static/js/entitiesDialog.js b/static/js/entitiesDialog.js index e9bf0345..84d1d0bd 100644 --- a/static/js/entitiesDialog.js +++ b/static/js/entitiesDialog.js @@ -402,10 +402,11 @@ pandora.ui.entitiesDialog = function(options) { pandora.api.editEntity(Ox.extend({ id: id }, key.id, data.value), function(result) { - if (key.id == 'name') { - $list.value(id, {name: result.data.name}); - } + Ox.Request.clearCache('findEntities'); Ox.Request.clearCache('getEntity'); + if (key.id == 'name') { + $list.reloadList(true); + } renderEntity(); }); }