Allow users who re-edit posts to skip notifications. Fixes bug #11466

This commit is contained in:
Colin Kuskie 2010-03-22 15:25:44 -07:00
parent 2dd18be4be
commit f5fd970c94
5 changed files with 19 additions and 0 deletions

View file

@ -1127,6 +1127,9 @@ sub processPropertiesFromFormPost {
else {
$self->getThread->unsubscribe;
}
if ($self->canEdit && $form->process('skip_notification')) {
$self->setSkipNotification;
}
if ($self->getThread->getParent->canEdit) {
$form->process('isLocked') ? $self->getThread->lock : $self->getThread->unlock;
$form->process('isSticky') ? $self->getThread->stick : $self->getThread->unstick;
@ -1715,6 +1718,10 @@ sub www_edit {
name=>'contentType',
value=>$self->getValue("contentType") || "mixed",
});
$var{'skipNotification.form'} = WebGUI::Form::yesNo($session, {
name=>'skip_notification',
value=>$form->get("skip_notification",'yesNo') || 0,
});
if ($session->setting->get("metaDataEnabled")
&& $self->getThread->getParent->get('enablePostMetaData')) {
my $meta = $self->getMetaDataFields();