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 '
'; }