Remove the skipNotification column for the Subscribably aspect.
The duplication caused it to be impossible to turn off notifications, which caused the WikiPage test to fail since there was no template defined for sending notifications.
This commit is contained in:
parent
f9d97f2ce7
commit
869ee404e7
3 changed files with 14 additions and 27 deletions
|
|
@ -44,11 +44,6 @@ sub definition {
|
|||
label => $i18n->get("Email Template"),
|
||||
hoverHelp => $i18n->get("Email Template help"),
|
||||
},
|
||||
skipNotification => {
|
||||
autoGenerate => 0,
|
||||
noFormPost => 1,
|
||||
fieldType => 'yesNo',
|
||||
},
|
||||
);
|
||||
|
||||
push @{ $definition }, {
|
||||
|
|
@ -441,27 +436,6 @@ sub purge {
|
|||
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
=head2 setSkipNotification ( )
|
||||
|
||||
Set a flag so that this asset does not send out notifications for this
|
||||
revision.
|
||||
|
||||
=cut
|
||||
|
||||
sub setSkipNotification {
|
||||
my $self = shift;
|
||||
my $value = shift;
|
||||
$value = defined $value ? $value : 1;
|
||||
|
||||
$self->update( {
|
||||
skipNotification => $value,
|
||||
} );
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
=head2 shouldSkipNotification ( )
|
||||
|
||||
Returns true if the asset should skip notifications.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue