Product beerxml export filename includes beer code.

Mon, 11 Feb 2019 22:56:58 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Mon, 11 Feb 2019 22:56:58 +0100
changeset 272
0c2ea1c2b858
parent 271
af0270694d1e
child 273
19606adfea42

Product beerxml export filename includes beer code.

www/prod_export.php file | annotate | diff | comparison | revisions
--- a/www/prod_export.php	Mon Feb 11 21:25:29 2019 +0100
+++ b/www/prod_export.php	Mon Feb 11 22:56:58 2019 +0100
@@ -606,7 +606,7 @@
 $beerxml = xmlwriter_output_memory($xw);
 
 Header('Content-type: text/xml');
-header('Content-Disposition: attachment; filename="' . $row['name'] . '.xml"');
+header('Content-Disposition: attachment; filename="' . $row['code'] . ' ' . $row['name'] . '.xml"');
 header('Content-Transfer-Encoding: binary');
 header('Expires: 0');
 header('Pragma: no-cache');

mercurial