Properly detect and print out a warning message, when you are the last
maintainer of a deleted community and are trying to leave it. Only the error
message was showing up incorrectly in some cases; the actual logic for allowing
deletion or not works properly.
Patch by denise.
diffs (12 lines):
diff -r dde231e4bf1b -r e0ff4a456c2b htdocs/community/leave.bml
--- a/htdocs/community/leave.bml Thu Dec 17 14:00:51 2009 +0000
+++ b/htdocs/community/leave.bml Thu Dec 17 14:26:01 2009 +0000
@@ -62,7 +62,7 @@
} else {
# show a confirmation form
$body .= "<?h1 $ML{'.sure'} h1?>";
- $body .= "<?p $ML{'.label.lastmaintainer.deletedcomm'} p?>" if
$cu->is_deleted && $remote->can_manage( $cu );
+ $body .= "<?p $ML{'.label.lastmaintainer.deletedcomm'} p?>" if
$cu->is_deleted && $remote->can_manage( $cu ) && length(
$cu->maintainer_userids ) == 1;
$body .= "<?p ";
if ($watching && !$memberof) {
$body .= BML::ml('.label.buttontostopwatch', { commname => $ecname
});
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog