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

@ -9,6 +9,7 @@
- fixed thread pagination on search results, off by 1 error and modal direction
- fixed #11482: Template hard-coded in deactivateAccount
- fixed #11485: RedirectAfterLoginUrl Setting should not override returnUrl and redirectAfterLogin scratch
- fixed #11466: Can't delete attached file in CS
7.9.0
- added #11383: AJAX username checks at registration (Luke Robinson / Orchard Solutions)

Binary file not shown.

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();

View file

@ -56,6 +56,7 @@ our $HELP = {
{ 'name' => 'title.form.textarea' },
{ 'name' => 'synopsis.form' },
{ 'name' => 'content.form' },
{ 'name' => 'skipNotification.form' },
{ 'name' => 'form.submit' },
{ 'name' => 'karmaScale.form' },
{ 'name' => 'karmaIsEnabled' },

View file

@ -178,6 +178,16 @@ will be a plain text area.|,
lastUpdated => 1149829706,
},
'skipNotification.form' => {
message => q|A field to that allows a user with the correct editing privileges to skip email notification|,
lastUpdated => 1269289137,
},
'Skip notification' => {
message => q|Skip notification|,
lastUpdated => 1269289137,
},
'form.submit' => {
message => q|A button to submit the post.|,
lastUpdated => 1149829706,