X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=Pman.Tab.PersonList.js;h=34173faf4e94c515fa6d4f494d90d8d8b6a09c30;hp=f8226d3aa5e821ba6c57ca9fec5d927e94d50975;hb=refs%2Fheads%2Fwip_alan_T5884_add_photo_to_report;hpb=5344ab593eb0e256095d989bb0089698f09cad1a diff --git a/Pman.Tab.PersonList.js b/Pman.Tab.PersonList.js index f8226d3a..34173faf 100644 --- a/Pman.Tab.PersonList.js +++ b/Pman.Tab.PersonList.js @@ -461,7 +461,7 @@ Pman.Tab.PersonList.prototype = { var rec_id = rec.id; - if (!ids.length) { + if (rec_id * 1 < 1) { Roo.MessageBox.alert("Error", "Select row to delete"); return; } @@ -477,7 +477,7 @@ Pman.Tab.PersonList.prototype = { method : 'POST', url : baseURL + '/Roo/core_person', params : { - _delete : ids.join(',') + _delete : rec_id }, success : function() { _this.paging.onClick('refresh');