Fix boss accept / reject action url - refs BT#9092

1.10.x
Daniel Barreto 10 years ago
parent 4864080f13
commit 1323865880
  1. 5
      plugin/advancedsubscription/ajax/advsub.ajax.php
  2. 4
      plugin/advancedsubscription/views/advsub_request_superior.tpl

@ -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;

@ -66,8 +66,8 @@
<tr>
<td width="58" valign="middle"><img src="{{ student.picture.file }}" width="50" height="50" alt=""></td>
<td width="211" valign="middle"><h4>{{ student.complete_name }}</h4></td>
<td width="90" valign="middle"><a href="{{ acceptUrl }}"><img src="{{ _p.web_plugin }}advancedsubscription/views/img/aprobar.png" width="90" height="25" alt=""></a></td>
<td width="243" valign="middle"><a href="{{ rejectUrl }}"><img src="{{ _p.web_plugin }}advancedsubscription/views/img/desaprobar.png" width="90" height="25" alt=""></a></td>
<td width="90" valign="middle"><a href="{{ student.acceptUrl }}"><img src="{{ _p.web_plugin }}advancedsubscription/views/img/aprobar.png" width="90" height="25" alt=""></a></td>
<td width="243" valign="middle"><a href="{{ student.rejectUrl }}"><img src="{{ _p.web_plugin }}advancedsubscription/views/img/desaprobar.png" width="90" height="25" alt=""></a></td>
</tr>
</table>
<p>Gracias.</p>

Loading…
Cancel
Save