Revision: 68
http://gemstracker.svn.sourceforge.net/gemstracker/?rev=68&view=rev
Author: mennodekker
Date: 2011-09-22 09:30:10 +0000 (Thu, 22 Sep 2011)
Log Message:
-----------
fixed logging of export
Modified Paths:
--------------
tags/1.4.2/library/classes/Gems/Default/ExportAction.php
Modified: tags/1.4.2/library/classes/Gems/Default/ExportAction.php
===================================================================
--- tags/1.4.2/library/classes/Gems/Default/ExportAction.php 2011-09-22 09:24:47 UTC (rev 67)
+++ tags/1.4.2/library/classes/Gems/Default/ExportAction.php 2011-09-22 09:30:10 UTC (rev 68)
@@ -161,7 +161,7 @@
$element->setLabel($this->_('Survey'))
->setMultiOptions($surveys);
$elements[] = $element;
-
+
//Add a field to the form showing the record count. If this is too slow for large recordsets
//then remove it or make it more efficient
unset($data['records']);
@@ -246,9 +246,9 @@
if (isset($data['type'])) {
//Do the logging
- $message = join(', ', $data);
+ $message = Zend_Json::encode($data);
Gems_AccessLog::getLog()->log('export', $this->getRequest(), $message, null, true);
-
+
//And delegate the export to the right class
$exportClass = $this->export->getExport($data['type']);
$exportClass->handleExport($data, $survey, $answers, $answerModel, $language);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|