From c8cfc49af93dbbd6a6ab48bbad32913954269c97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96sterreicher?= Date: Fri, 23 Jul 2021 13:59:21 +0200 Subject: [PATCH] =?UTF-8?q?Mailempf=C3=A4nger=20bei=20Urlaubsfreigabemail?= =?UTF-8?q?=20korrigiert?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cis/private/profile/urlaubsfreigabe.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cis/private/profile/urlaubsfreigabe.php b/cis/private/profile/urlaubsfreigabe.php index 384a3415d..f71d7adda 100644 --- a/cis/private/profile/urlaubsfreigabe.php +++ b/cis/private/profile/urlaubsfreigabe.php @@ -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 " zeitsperre_id&year=$year&uid=$row->mitarbeiter_uid' class='Item'>Freigabe"; + echo " zeitsperre_id&year=$year&uid=$uid' class='Item'>Freigabe"; echo ""; echo '
'; }