Skip to content

Commit

Permalink
Fixed issue #4036: exclude_all_others question attribute design changed
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey@8245 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
c-schmitz committed Jan 13, 2010
1 parent 3e488e9 commit e38d2c2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions common.php
Expand Up @@ -3426,7 +3426,7 @@ function questionAttributes($returnByName=false)
'category'=>$clang->gT('Logic'),
'sortorder'=>100,
'inputtype'=>'text',
"help"=>$clang->gT('Excludes all other options if a certain answer is selected - just enter the answer code.'),
"help"=>$clang->gT('Excludes all other options if a certain answer is selected - just enter the answer code(s) seperated with a semikolon.'),
"caption"=>$clang->gT('Exclusive option'));

$qattributes["hide_tip"]=array(
Expand Down Expand Up @@ -4247,8 +4247,8 @@ function SendEmailMessage($body, $subject, $to, $from, $sitename, $ishtml=false,
$mail->SMTPAuth = true;
}
}
$mail->From = $fromemail;
$mail->Sender = $senderemail; // Sets Return-Path for error notifications
$mail->SetFrom($fromemail, $fromname);
$mail->Sender = $senderemail; // Sets Return-Path for error notifications
$toemails = explode(";", $to);
foreach ($toemails as $singletoemail)
{
Expand All @@ -4263,8 +4263,8 @@ function SendEmailMessage($body, $subject, $to, $from, $sitename, $ishtml=false,
$mail->AddAddress($singletoemail);
}
}
$mail->FromName = $fromname;
$mail->AddCustomHeader("X-Surveymailer: $sitename:Emailer (LimeSurvey.sourceforge.net)");

$mail->AddCustomHeader("X-Surveymailer: $sitename Emailer (LimeSurvey.sourceforge.net)");
if (get_magic_quotes_gpc() != "0") {$body = stripcslashes($body);}
$textbody = strip_tags($body);
$textbody = str_replace(""", '"', $textbody);
Expand Down
2 changes: 1 addition & 1 deletion qanda.php
Expand Up @@ -3038,7 +3038,7 @@ function do_multiplechoice($ia)

if (trim($qidattributes['exclude_all_others'])!='')
{
$excludeallothers[]=$qidattributes['exclude_all_others'];
$excludeallothers=explode(';',trim($qidattributes['exclude_all_others']));
$excludeallotherscript = "
<script type='text/javascript'>
<!--
Expand Down

0 comments on commit e38d2c2

Please sign in to comment.