- Disables "confirm unconfirmed" batch action as per #432
This commit is contained in:
@ -213,7 +213,7 @@ const bulk_actions = [
|
||||
);
|
||||
}
|
||||
},
|
||||
{
|
||||
/* {
|
||||
name: 'confirmUnconfirmed',
|
||||
label: MailPoet.I18n.t('confirmUnconfirmed'),
|
||||
onSuccess: function(response) {
|
||||
@ -222,7 +222,7 @@ const bulk_actions = [
|
||||
.replace('%$1d', ~~response)
|
||||
);
|
||||
}
|
||||
},
|
||||
},*/
|
||||
{
|
||||
name: 'sendConfirmationEmail',
|
||||
label: MailPoet.I18n.t('resendConfirmationEmail'),
|
||||
|
@ -198,6 +198,7 @@ class Subscriber extends Model {
|
||||
__('Subscribers without a segment (%s)'),
|
||||
number_format($subscribers_without_segment)
|
||||
);
|
||||
|
||||
$segment_list[] = array(
|
||||
'label' => str_replace(' (0)', '', $subscribers_without_segment_label),
|
||||
'value' => 'none'
|
||||
@ -534,11 +535,11 @@ class Subscriber extends Model {
|
||||
return false;
|
||||
}
|
||||
|
||||
static function bulkConfirmUnconfirmed($orm) {
|
||||
/* static function bulkConfirmUnconfirmed($orm) {
|
||||
$subscribers = $orm->findResultSet();
|
||||
$subscribers->set('status', self::STATUS_SUBSCRIBED)->save();
|
||||
return $subscribers->count();
|
||||
}
|
||||
}*/
|
||||
|
||||
static function bulkSendConfirmationEmail($orm) {
|
||||
$subscribers = $orm
|
||||
|
Reference in New Issue
Block a user