Mailempfänger bei Urlaubsfreigabemail korrigiert

This commit is contained in:
Andreas Österreicher
2021-07-23 13:59:21 +02:00
parent 752a891c6b
commit c8cfc49af9
+4 -4
View File
@@ -154,10 +154,10 @@ if (isset($_GET['action']) && $_GET['action'] == 'freigabe')
}
//Bestätigungsmail an Mitarbeiter*in
$to = $uid. '@'.DOMAIN;
$to = $zeitsperre->mitarbeiter_uid. '@'.DOMAIN;
$person = new person();
$fullNameVG = $person->getFullNameFromBenutzer($user);
$fullNameMA = $person->getFullNameFromBenutzer($uid);
$fullNameMA = $person->getFullNameFromBenutzer($zeitsperre->mitarbeiter_uid);
$from = 'noreply@'.DOMAIN;
$subject = $p->t('urlaubstool/urlaubsfreigabe'). date("d.m.Y", strtotime($zeitsperre->vondatum)). " ".
$p->t('urlaubstool/bis'). " ". date("d.m.Y", strtotime($zeitsperre->bisdatum));
@@ -166,7 +166,7 @@ if (isset($_GET['action']) && $_GET['action'] == 'freigabe')
$p->t('urlaubstool/bis')." ".date("d.m.Y", strtotime($zeitsperre->bisdatum));
$text .= $p->t('urlaubstool/urlaubBis', array($fullNameVG));
$text .= "\n". "\n". $p->t('urlaubstool/sieKoennenDiesenUnterFolgenderAdresseEinsehen');
$text .= "\n". APP_ROOT. 'cis/private/profile/urlaubstool.php?uid='. $uid;
$text .= "\n". APP_ROOT. 'cis/private/profile/urlaubstool.php';
$mail = new mail($to, $from, $subject, $text);
@@ -228,7 +228,7 @@ function draw_monat($monat)
if ($vertretung->uid != '')
echo ' (Vertretung: '.$vertretung->nachname.')';
if($row->freigabeamum=='')
echo " <a href='".$_SERVER['PHP_SELF']."?action=freigabe&id=$row->zeitsperre_id&year=$year&uid=$row->mitarbeiter_uid' class='Item'>Freigabe</a>";
echo " <a href='".$_SERVER['PHP_SELF']."?action=freigabe&id=$row->zeitsperre_id&year=$year&uid=$uid' class='Item'>Freigabe</a>";
echo "</span>";
echo '<br>';
}