From 5344ab593eb0e256095d989bb0089698f09cad1a Mon Sep 17 00:00:00 2001 From: benny Date: Fri, 13 Jul 2018 16:20:16 +0800 Subject: [PATCH] Pman.Tab.PersonList.js --- Pman.Tab.PersonList.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Pman.Tab.PersonList.js b/Pman.Tab.PersonList.js index bc3fa86d..f8226d3a 100644 --- a/Pman.Tab.PersonList.js +++ b/Pman.Tab.PersonList.js @@ -459,8 +459,8 @@ Pman.Tab.PersonList.prototype = { var rec = _this.grid.ds.getAt(_this.grid.selModel.last); - var ids = []; - ids.push(rec.id); + var rec_id = rec.id; + if (!ids.length) { Roo.MessageBox.alert("Error", "Select row to delete"); return; -- 2.39.2