bezeichnung /titel-problem: dateiname aus akte->bezeichnung

This commit is contained in:
Gerald Raab
2016-11-17 15:08:05 +01:00
parent 278be4cc61
commit a48ee2676e
+2 -2
View File
@@ -103,7 +103,7 @@ foreach($prestudent_ids as $pid)
*/
$query= '
SELECT
titel, dms_id, inhalt, mimetype, dokument_kurzbz, tbl_dokument.bezeichnung, sort, akte_id
tbl_akte.bezeichnung as dateiname, titel, dms_id, inhalt, mimetype, dokument_kurzbz, tbl_dokument.bezeichnung, sort, akte_id
FROM
public.tbl_vorlagedokument
JOIN public.tbl_dokument USING(dokument_kurzbz)
@@ -153,7 +153,7 @@ foreach($prestudent_ids as $pid)
* and convert, if nessecary
*/
$fullFilename = "";
$explodedTitle = explode(".", $row->titel);
$explodedTitle = explode(".", $row->dateiname);
$type = $explodedTitle[count($explodedTitle)-1];
if(