Skip to content

Commit

Permalink
Fixed issue #8812: Email attachments configuration is not saved
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Mar 5, 2014
1 parent c3d9329 commit 297b3ea
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 23 deletions.
2 changes: 1 addition & 1 deletion application/controllers/admin/emailtemplates.php
Expand Up @@ -84,7 +84,7 @@ function index($iSurveyId)
*/
function update($iSurveyId)
{
$uploadUrl = Yii::app()->getBaseUrl(true) . Yii::app()->getConfig('uploadurl');
$uploadUrl = Yii::app()->getBaseUrl(true) . substr(Yii::app()->getConfig('uploadurl'),strlen(Yii::app()->getConfig('publicurl'))-1);
// We need the real path since we check that the resolved file name starts with this path.
$uploadDir = realpath(Yii::app()->getConfig('uploaddir'));
$save=Yii::app()->request->getPost('save','');
Expand Down
22 changes: 0 additions & 22 deletions application/views/admin/emailtemplates/emailtemplates_view.php
Expand Up @@ -24,29 +24,7 @@


</script>
<style type="text/css">

#emailtemplates table.attachments td, #emailtemplates button.add-attachment {
text-align: left;
margin: 2px 2px 2px 2px !important;

}

table.attachments td span{
border: 1px solid #999999;
display:block;
}

table.attachments img, table.attachments span{
height: 16px;
cursor: pointer;
}
ul.editor-parent {
overflow: hidden;
}


</style>
<div class='header ui-widget-header'>
<?php $clang->eT("Edit email templates"); ?>
</div>
Expand Down

0 comments on commit 297b3ea

Please sign in to comment.