Skip to content
Snippets Groups Projects
Commit 4f9fbeeb authored by Uma's avatar Uma
Browse files

Mass deletion of system template should throw an error

parent 94e0f339
No related branches found
No related tags found
No related merge requests found
No preview for this file type
......@@ -38,8 +38,11 @@ Vtiger_List_Js("EmailTemplates_List_Js", {
deleteURL += "&search_params=" + JSON.stringify(listViewInstance.getListSearchParams());
app.helper.showProgress();
app.request.post({url: deleteURL}).then(
function () {
function (error, data) {
app.helper.hideProgress();
if(error) {
app.helper.showErrorNotification({message: error});
}
listInstance.clearList();
listInstance.loadListViewRecords();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment