+ Fix bugs

This commit is contained in:
Djery-Tom 2020-08-27 20:36:27 +01:00
parent 69b294c8c7
commit 93b5c34821
2 changed files with 3 additions and 3 deletions

View File

@ -366,7 +366,7 @@ class NanoCreditController extends Controller
}));
$mois = array_map(function ($palier) {
return $palier->duree_mois;
return ['value' => $palier->duree_mois];
}, $paliers);
return $this->successResponse($mois);

View File

@ -367,11 +367,11 @@ class UserGroupController extends Controller
$data->screen = "demandeValidationGroupe";
$message_id = 'notifications.group_validation_request';
} else if ($type == 'suppression') {
$data->screen = "demandeSuppressionGroupe";
$data->screen = "demandeValidationGroupe"; //"demandeSuppressionGroupe";
$message_id = 'notifications.group_deleting_request';
} else if ($type == 'adhesion') {
$demande->id_user = $sender->id;
$data->screen = "demandJoinGroup";
$data->screen = "demandeValidationGroupe"; //"demandJoinGroup";
$message_id = 'notifications.group_membership_request';
} else {
$data->screen = "notificationview";