From: Will Budicm Date: Fri, 31 Jul 2020 22:21:01 +0000 (+1000) Subject: export to CSV fix. X-Git-Url: https://lifelog.hopto.org/gitweb/?a=commitdiff_plain;h=b8a869c5e47e4dcfcaf6470a4a0f9085474690cb;p=LifeLog.git export to CSV fix. --- diff --git a/htdocs/cgi-bin/config.cgi b/htdocs/cgi-bin/config.cgi index 8aea9e7..60fa9aa 100755 --- a/htdocs/cgi-bin/config.cgi +++ b/htdocs/cgi-bin/config.cgi @@ -1112,7 +1112,9 @@ sub exportToCSV { print "
\n";
         }
         else{
-         print $cgi->header(-charset=>"UTF-8", -type=>"application/octet-stream", -attachment=>"$dbname.categories.csv");
+         my $type = 'categories';
+         $type = 'log' if($csvp ==1);
+         print $cgi->header(-charset=>"UTF-8", -type=>"application/octet-stream", -attachment=>"$dbname.$type.csv");
         }
 
         #print "ID,NAME,DESCRIPTION\n";