diff --git a/plugin/advancedsubscription/ajax/advsub.ajax.php b/plugin/advancedsubscription/ajax/advsub.ajax.php index 545a8122bc..c788da6f99 100644 --- a/plugin/advancedsubscription/ajax/advsub.ajax.php +++ b/plugin/advancedsubscription/ajax/advsub.ajax.php @@ -72,6 +72,7 @@ if ($verified) { $admin['complete_name'] = $admin['lastname'] . ', ' . $admin['firstname']; } unset($admin); + $data['a'] = 'confirm'; $data['student'] = $studentArray; $data['superior'] = $superiorArray; $data['admins'] = $adminsArray; @@ -98,9 +99,9 @@ if ($verified) { } } else { $data['e'] = ADV_SUB_QUEUE_STATUS_BOSS_APPROVED; - $student['acceptUrl'] = $plugin->getQueueUrl($data); + $data['student']['acceptUrl'] = $plugin->getQueueUrl($data); $data['e'] = ADV_SUB_QUEUE_STATUS_BOSS_DISAPPROVED; - $student['rejectUrl'] = $plugin->getQueueUrl($data); + $data['student']['rejectUrl'] = $plugin->getQueueUrl($data); $result['mailIds'] = $plugin->sendMail($data, ADV_SUB_ACTION_STUDENT_REQUEST); if (!empty($result['mailIds'])) { $result['error'] = false; diff --git a/plugin/advancedsubscription/views/advsub_request_superior.tpl b/plugin/advancedsubscription/views/advsub_request_superior.tpl index b77f44d0ce..1424ae8c4a 100644 --- a/plugin/advancedsubscription/views/advsub_request_superior.tpl +++ b/plugin/advancedsubscription/views/advsub_request_superior.tpl @@ -66,8 +66,8 @@

{{ student.complete_name }}

- - + +

Gracias.