Bugfix: Use correct id for attachment preview

This commit is contained in:
cgfhtw
2024-06-27 15:55:56 +02:00
parent 6b4e8df411
commit f5286ae66b
@@ -36,7 +36,7 @@ class NotizPerson extends Notiz_Controller
$notiz_id = $this->input->post('notiz_id');
// TODO(chris): make CI variant of endpoint
$this->NotizModel->addSelect($this->NotizModel->escape(base_url('content/notizdokdownload.php?id=' . $notiz_id)) . ' AS preview');
$this->NotizModel->addSelect($this->NotizModel->escape(base_url('content/notizdokdownload.php?id=')) . ' || campus.tbl_dms_version.dms_id AS preview');
return parent::loadDokumente();
}