Permalink
Browse files

show delete button on sent campaigns if it is a test (#361)

Signed-off-by: Xheni Myrtaj <myrtajxheni@gmail.com>
  • Loading branch information...
xh3n1 authored and michield committed Jun 30, 2018
1 parent 25ad366 commit 9720cd1f8f77f4e5890fae01f716d8210fc03776
Showing with 1 addition and 1 deletion.
  1. +1 −1 public_html/lists/admin/messages.php
@@ -599,7 +599,7 @@
// $actionbuttons .= sprintf('<span class="delete"><a href="javascript:deleteRec(\'%s\');" class="button" title="'.$GLOBALS['I18N']->get("delete").'">'.$GLOBALS['I18N']->get("delete").'</a></span>',PageURL2("messages$url_keep","","delete=".$msg["id"]));
$actionbuttons .= '<span class="edit">'.PageLinkButton('send', $GLOBALS['I18N']->get('Edit'),
'id='.$msg['id'], '', s('Edit')).'</span>';
if (empty($clicks[0])) { //# disallow deletion when there are stats
if (empty($clicks[0]) || !empty($messagedata['istestcampaign'])) { //# disallow deletion when there are stats except when is test campaign
$actionbuttons .= '<span class="delete">'.$deletebutton->show().'</span>';
}
}

0 comments on commit 9720cd1

Please sign in to comment.