Fix so imap error message is displayed to the user on folder create/update (#7245)

bnet/additions
Aleksander Machniak 5 years ago
parent 43f90d31c8
commit c99e093f8a

@ -18,6 +18,7 @@ CHANGELOG Roundcube Webmail
- Markasjunk: Fix marking as spam/ham on moving messages with Move menu (#7189)
- Markasjunk: Fix bug where moving to Junk was failing on messages selected with Select > All (#7206)
- Fix bug where session was destoryed with window close (#7251)
- Fix so imap error message is displayed to the user on folder create/update (#7245)
RELEASE 1.4.3
-------------

@ -135,7 +135,12 @@ if (!$error && !strlen($old_imap)) {
}
else {
// show error message
$OUTPUT->show_message($plugin['message'] ?: 'errorsaving', 'error', null, false);
if (!empty($plugin['message'])) {
$OUTPUT->show_message($plugin['message'], 'error', null, false);
}
else {
$RCMAIL->display_server_error('errorsaving');
}
}
}
// update a mailbox
@ -198,7 +203,12 @@ else if (!$error) {
}
else {
// show error message
$OUTPUT->show_message($plugin['message'] ?: 'errorsaving', 'error', null, false);
if (!empty($plugin['message'])) {
$OUTPUT->show_message($plugin['message'], 'error', null, false);
}
else {
$RCMAIL->display_server_error('errorsaving');
}
}
}

Loading…
Cancel
Save