From d263216aa0aef114b15d01aaf95af1ff442891b8 Mon Sep 17 00:00:00 2001 From: Cris Date: Tue, 26 May 2020 09:59:52 +0200 Subject: [PATCH] Changed: Download in CIS Selfservice does not require to be signed anymore Self-Download is determined by attribute 'stud_selfservice', not by 'signiert' anymore. This is required e.g. for Bachelor diploma, that should be downloadable but does not need to be signed. --- cis/private/profile/dokumente.php | 2 -- include/akte.class.php | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/cis/private/profile/dokumente.php b/cis/private/profile/dokumente.php index ee31824af..b0c179345 100644 --- a/cis/private/profile/dokumente.php +++ b/cis/private/profile/dokumente.php @@ -76,7 +76,6 @@ if(isset($_GET['action']) && $_GET['action']=='download') $akte = new akte(); $akte->load($id); if ($akte->person_id == $student_studiengang->person_id - && $akte->signiert && $akte->stud_selfservice) { if($akte->inhalt!='') @@ -123,7 +122,6 @@ echo ' }); $(".tablesorter2").tablesorter( { - sortList: [[1,1]], headers: { 0: { sorter: false }}, widgets: ["zebra"] }); diff --git a/include/akte.class.php b/include/akte.class.php index 67a6dc71f..b1498320d 100644 --- a/include/akte.class.php +++ b/include/akte.class.php @@ -527,7 +527,7 @@ class akte extends basis_db if(!is_null($stud_selfservice)) $qry.=" AND stud_selfservice=".($stud_selfservice?'true':'false'); - $qry.=" ORDER BY erstelltam"; + $qry.=" ORDER BY erstelltam DESC"; $this->errormsg = $qry;