diff --git a/src/node/handler/ExportHandler.js b/src/node/handler/ExportHandler.js index 11d247d6..d0d8ddaa 100644 --- a/src/node/handler/ExportHandler.js +++ b/src/node/handler/ExportHandler.js @@ -52,7 +52,7 @@ exports.doExport = function(req, res, padId, type) hooks.aCallFirst("exportFileName", padId, function(err, hookFileName){ // if fileName is set then set it to the padId, note that fileName is returned as an array. - if(hookFileName[0]) fileName = hookFileName[0]; + if(hookFileName[0]) fileName = hookFileName; } );