You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reported by rosali on 5 Dec 2013 10:21 UTC as Trac ticket #1489463
If the backend class is raising an error the current implementation does not check for $CONTACTS->get_error(). In addition it does not return to the appropriate contact group if the error occured when deleting a contact from a selected contactgroup.
Patch:
./program/steps/addressbook/delete.inc ::: line 51 ff
$deleted = !$plugin[? $CONTACTS->delete($cid, $undo_time < 1) : $plugin['result']('abort']);
if (!$deleted) {
/* Begin patch by Rosali */
$err = $CONTACTS->get_error();
$OUTPUT->show_message($plugin[? $plugin['message']('message']) : ($err[? $err['message']('message']) : 'contactdelerror'), 'error', null, false);
$OUTPUT->command('list_contacts', get_input_value('_source', RCUBE_INPUT_GPC), get_input_value('_gid', RCUBE_INPUT_GPC));
/* End patch by Rosali */
$OUTPUT->send();
}
Also it should not show the next contact in the list in the content frame when deletion failed.
Patch:
./program/js/app.js ::: line 4212 ff
// load contacts remotely
if (this.gui_objects.contactslist) {
/* Begin patch by Rosali */
$('#contact-frame').attr('src', this.env.blankpage);
$('.loading').remove();
/* End patch by Rosali */
this.list_contacts_remote(src, group, page);
return;
}
The error message handling fixed in 2c16ab5. I didn't do the second part of your request as here the next contact is not loaded on error and I don't see an issue.
Note the 2nd and 3rd argument. It makes sure that the group is listed (instead of all contacts from the addressbook backend) if the delete command is triggered when a group is selected.
Reported by rosali on 5 Dec 2013 10:21 UTC as Trac ticket #1489463
If the backend class is raising an error the current implementation does not check for $CONTACTS->get_error(). In addition it does not return to the appropriate contact group if the error occured when deleting a contact from a selected contactgroup.
Patch:
./program/steps/addressbook/delete.inc ::: line 51 ff
Also it should not show the next contact in the list in the content frame when deletion failed.
Patch:
./program/js/app.js ::: line 4212 ff
Migrated-From: http://trac.roundcube.net/ticket/1489463
The text was updated successfully, but these errors were encountered: