mirror of
https://github.com/humhub/humhub.git
synced 2025-02-24 03:06:04 +01:00
#4586 Change 'base' to 'AdminModule.user' used a more meaningful text. Remove statusMessage replace it with $this->view->info
This commit is contained in:
parent
d0824937c6
commit
82c803943f
@ -97,14 +97,17 @@ class GroupController extends Controller
|
|||||||
]);
|
]);
|
||||||
} else {
|
} else {
|
||||||
if (!empty(Yii::$app->request->post('submitReassignAll'))) {
|
if (!empty(Yii::$app->request->post('submitReassignAll'))) {
|
||||||
$this->view->success(Yii::t(
|
|
||||||
'base',
|
$this->view->info(Yii::t('AdminModule.user', 'Default space reassignment job was queued.'));
|
||||||
'Reassigned'
|
|
||||||
));
|
|
||||||
|
|
||||||
$job = new ReassignAllDefaultSpaces();
|
$job = new ReassignAllDefaultSpaces();
|
||||||
if (QueueHelper::isQueued($job)) {
|
if (QueueHelper::isQueued($job)) {
|
||||||
$this->view->setStatusMessage('success', Yii::t('AdminModule.information', 'The Space memberships of this group will be reassigned. This process can take up to several minutes.'));
|
$this->view->info(
|
||||||
|
Yii::t(
|
||||||
|
'AdminModule.information',
|
||||||
|
'Default space reassignment job already is queued. This process can take up to several minutes.'
|
||||||
|
)
|
||||||
|
);
|
||||||
} else {
|
} else {
|
||||||
$job->groupId = $group->id;
|
$job->groupId = $group->id;
|
||||||
Yii::$app->queue->push($job);
|
Yii::$app->queue->push($job);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user