[Web] Continue when a check in add_alias fails

[Web] Fix "null" output in mailbox table when comments are missing
[Update] Remove obsolete check/replace command
This commit is contained in:
andryyy
2019-03-14 01:46:15 +01:00
parent d449984a66
commit d8dbcfac92
3 changed files with 18 additions and 9 deletions

View File

@@ -731,8 +731,18 @@ jQuery(function($){
'</div>';
item.chkbox = '<input type="checkbox" data-id="alias" name="multi_select" value="' + encodeURIComponent(item.id) + '" />';
item.goto = escapeHtml(item.goto.replace(/,/g, " "));
item.public_comment = escapeHtml(item.public_comment);
item.private_comment = escapeHtml(item.private_comment);
if (item.public_comment !== null) {
item.public_comment = escapeHtml(item.public_comment);
}
else {
item.public_comment = '-';
}
if (item.private_comment !== null) {
item.private_comment = escapeHtml(item.private_comment);
}
else {
item.private_comment = '-';
}
if (item.is_catch_all == 1) {
item.address = '<div class="label label-default">Catch-All</div> ' + escapeHtml(item.address);
}