Commit 52976a4d by Denis Chenu

[fix] Typo on filenamed settings

- Fix #1
- This allow to really use token for end of the file
parent b9066662
Showing with 5 additions and 1 deletions
# Change Log
Only partial changelog, [commit history](https://framagit.org/Shnoulle/LimeSurvey/commits/2.06_SondagesPro) show all changelog.
## [unreleased]
### fix
- Undefined property: sendPdfReport::$settingd Thanks to [Dr. Marcel Minke ](https://framagit.org/SondagePro-LimeSurvey-plugin/sendPdfReport/issues/1)
## [1.2.1] 2017-02-18
......
......@@ -419,7 +419,7 @@ class sendPdfReport extends \ls\pluginmanager\PluginBase {
$oPDF->lastPage();
$sFilePdfName=Yii::app()->getConfig("tempdir").DIRECTORY_SEPARATOR.$this->get("name_{$sType}",null,null,$this->settings["name_{$sType}"]["default"])."_{$this->iSurveyId}_";
$oSessionSurvey=Yii::app()->session["survey_{$this->iSurveyId}"];
if(!empty($oSessionSurvey['token']) && $this->get("filenameend",null,null,$this->settingd['filenameend']['default'])=='token')
if(!empty($oSessionSurvey['token']) && $this->get("filenameend",null,null,$this->settings['filenameend']['default'])=='token')
{
$sFilePdfName.="{$oSessionSurvey['token']}.pdf";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment