Skip to content
Permalink
Browse files

Do not attempt to change the status on an inbox message which doesn't…

… exist. Fixes bug #12349.
  • Loading branch information...
perlDreamer committed Apr 3, 2012
1 parent 07bd545 commit 2c225f30f53143205f6aa37fc2af984cb95dc634
Showing with 5 additions and 1 deletion.
  1. +1 −0 docs/changelog/7.x.x.txt
  2. +4 −1 lib/WebGUI/Friends.pm
@@ -12,6 +12,7 @@
- fixed: Crud updateFromFormPost
- fixed: encryptLogin and sslEnabled both need to be true
- fixed: Cache's setByHTTP method returns content, even when it gets an error in the request. This gives the SC asset fits.
- fixed #12349: Friends invitation error

7.10.24
- fixed #12318: asset error causes asset manager to fail
@@ -320,7 +320,10 @@ sub rejectAddRequest {
status => 'unread',
});
}
$inbox->getMessage($invite->{messageId})->setStatus('completed');
my $invitation = $inbox->getMessage($invite->{messageId});
if ($invitation) {
$invitation->setStatus('completed');
}
$self->session->db->deleteRow("friendInvitations", "inviteId", $inviteId);
}

0 comments on commit 2c225f3

Please sign in to comment.
You can’t perform that action at this time.