From 9a607b48e9bd065a6629e967a354dddb83f8096f Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Fri, 30 Jul 2021 08:43:36 +0000 Subject: [PATCH] wait #4620 @0.5 --- inc/ws/Controlleur/class.ws.url.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/inc/ws/Controlleur/class.ws.url.php b/inc/ws/Controlleur/class.ws.url.php index 2699a68b9..0344d07fd 100644 --- a/inc/ws/Controlleur/class.ws.url.php +++ b/inc/ws/Controlleur/class.ws.url.php @@ -1217,6 +1217,9 @@ html,body{height:100%;cursor: wait;font-family: "Open Sans", Arial;background-co $tmp = sys_get_temp_dir() . '/ysl_survey_' . time() . '.xlsx'; $writer->save($tmp); + $dao = new wsDAOBook($core->con); + $book = $dao->selectById($bid); + $head = ['Date', 'Page', 'Rating', 'Country', 'Function', 'Suggestions']; $sql = "SELECT * FROM ysl_survey WHERE fluidbook_id='" . $core->con->escape($bid) . "' ORDER BY date ASC"; @@ -1229,7 +1232,7 @@ html,body{height:100%;cursor: wait;font-family: "Open Sans", Arial;background-co CubeIT_Excel::simple('Survey data #' . $bid, $data, $head, $tmp, 100); files::$mimeType['xlsx'] = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'; - cubeHTTP::downloadFile($tmp, 'ysl_survey_' . $bid . '.xlsx'); + cubeHTTP::downloadFile($tmp, 'report-' . $bid . '-' . cubeText::str2URL($book->parametres->title) . '.xlsx'); } public static function chooseExistingBook() -- 2.39.5