@@ -103,7 +104,6 @@ function removeUserFromProject(&$redmine, $user_id, $project_id, $role_id) {
switch($_GET['action']){
case'agree':
case'move':
header('Content-Type: text/plain');
$recipientId=NULL;
foreach($issue['custom_fields']as$cf){
...
...
@@ -114,9 +114,15 @@ switch ($_GET['action']) {
}
if(is_null($recipientId)){
mail('admin@ut.mephi.ru','Got error on decide-note.php',print_r($_GET,1));
die('Произошла ошибка. Пожалуйста, повторите попытку позже. Cannot find recipient custom field in issue: '.$_GET['issueId']);
header('Content-Type: text/html');
mail('admin@ut.mephi.ru','Already confirmed in decide-note.php',print_r($_GET,1));
//die('Произошла ошибка. Пожалуйста, повторите попытку позже. Cannot find recipient custom field in issue: '.$_GET['issueId']);
?><html><head><title>Служебная записка уже подтверждена</title><metacharset="UTF-8"><metahttp-equiv="refresh"content="5; https://tasks.mephi.ru/issues/<?=$_GET['issueId']?>"/></head><body><h1>Служебная записка <ahref='https://tasks.mephi.ru/issues/<?=$_GET['issueId']?>'>#<?=$_GET['issueId']?></a> уже подтверждена. Через 5 секунд будет произведено перенаправление в систему «Задачи».</h1></body></html><?php