addEvent() returns new event

This commit is contained in:
Uwe Steinmann 2022-04-07 13:57:49 +02:00
parent 1e0172dd8f
commit b177e77389

View File

@ -73,7 +73,12 @@ class SeedDMS_Calendar {
"(".$this->db->qstr($name).", ".$this->db->qstr($comment).", ".(int) $from.", ".(int) $to.", ".$this->db->getCurrentTimestamp().", ".$this->user->getID().")"; "(".$this->db->qstr($name).", ".$this->db->qstr($comment).", ".(int) $from.", ".(int) $to.", ".$this->db->getCurrentTimestamp().", ".$this->user->getID().")";
$ret = $this->db->getResult($queryStr); $ret = $this->db->getResult($queryStr);
return $ret; if (!$ret)
return false;
$event = $this->getEvent((int) $this->db->getInsertID('tblEvents'));
return $event;
} /* }}} */ } /* }}} */
public function getEvent($id) { /* {{{ */ public function getEvent($id) { /* {{{ */