From: benny Date: Fri, 13 Jul 2018 08:20:16 +0000 (+0800) Subject: Pman.Tab.PersonList.js X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=5344ab593eb0e256095d989bb0089698f09cad1a Pman.Tab.PersonList.js --- 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;