Skip to content
Snippets Groups Projects
Commit 5f327e60 authored by Uma's avatar Uma
Browse files

Merge branch 'Default_template_deletion' into 'master'

Mass deletion of system template should throw an error

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