mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-15 19:19:28 +00:00
Mailempfänger bei Urlaubsfreigabemail korrigiert
This commit is contained in:
@@ -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>';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user