Ändern des Erledigt-Status von Notizen setzt jetzt immer das Updatevon/Updateamum Feld

This commit is contained in:
Andreas Österreicher
2019-04-23 15:32:37 +02:00
parent c049090987
commit 803c1cb4c3
+3 -1
View File
@@ -87,7 +87,7 @@ function saveNotiz($username, $passwort, $notiz)
$notiz_obj->ende = $notiz->ende;
$notiz_obj->erledigt=($notiz->erledigt=='true'?true:false);
$notiz_obj->updateamum = date('Y-m-d H:i:s');
$notiz_obj->updatevon = $username;
$notiz_obj->updatevon = $user;
if($notiz_obj->save())
{
@@ -178,6 +178,8 @@ function setErledigt($notiz_id, $erledigt)
if($notiz->load($notiz_id))
{
$notiz->erledigt=$erledigt;
$notiz->updateamum = date('Y-m-d H:i:s');
$notiz->updatevon = $user;
if($notiz->save())
{