]> lifelog.hopto.org Git - LifeLog.git/commitdiff
export to CSV fix.
authorWill Budicm <redacted>
Fri, 31 Jul 2020 22:21:01 +0000 (08:21 +1000)
committerWill Budicm <redacted>
Fri, 31 Jul 2020 22:21:01 +0000 (08:21 +1000)
htdocs/cgi-bin/config.cgi

index 8aea9e7aa1adb0267cc13621b26edafc06b83109..60fa9aa9b455541facdfc9ce89ccdd1ec2f04c76 100755 (executable)
@@ -1112,7 +1112,9 @@ sub exportToCSV {
                  print "<pre>\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";