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