Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/2.1' into 2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Nov 21, 2012
2 parents 403d515 + ed01b49 commit 0c8fc79
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 7 deletions.
5 changes: 3 additions & 2 deletions application/config/config-sample-mysql.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,10 @@
// then please check your error-logs - either in your hosting provider admin panel or in some /logs directory
// on your webspace.
// LimeSurvey developers: Set this to 2 to additionally display STRICT PHP error messages and get full access to standard templates
'debug'=>0
'debug'=>0,
'debugsql'=>0 // Set this to 1 to enanble sql logging, only active when debug = 2
)
)
);
/* End of file config.php */
/* Location: ./application/config/config.php */
/* Location: ./application/config/config.php */
5 changes: 3 additions & 2 deletions application/config/config-sample-pgsql.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@
// then please check your error-logs - either in your hosting provider admin panel or in some /logs directory
// on your webspace.
// LimeSurvey developers: Set this to 2 to additionally display STRICT PHP error messages and get full access to standard templates
'debug'=>0
'debug'=>0,
'debugsql'=>0 // Set this to 1 to enanble sql logging, only active when debug = 2
)
);
/* End of file config.php */
/* Location: ./application/config/config.php */
/* Location: ./application/config/config.php */
5 changes: 3 additions & 2 deletions application/config/config-sample-sqlsrv.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@
// then please check your error-logs - either in your hosting provider admin panel or in some /logs directory
// on your webspace.
// LimeSurvey developers: Set this to 2 to additionally display STRICT PHP error messages and get full access to standard templates
'debug'=>0
'debug'=>0,
'debugsql'=>0 // Set this to 1 to enanble sql logging, only active when debug = 2
)
);
/* End of file config.php */
/* Location: ./application/config/config.php */
/* Location: ./application/config/config.php */
13 changes: 12 additions & 1 deletion application/modules/NumericalQuestion.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,17 @@ public function getDataEntry($idrow, &$fnames, $language)
."onkeypress=\"return goodchars(event,'0123456789.,')\" />\n";
}

public function getExtendedAnswer($value, $language)
{
echo Yii::trace(CVarDumper::dumpAsString($value),'vardump');
$value=rtrim($value,"0.");
$aQuestionAttributes = $this->getAttributeValues();
if($aQuestionAttributes['num_value_int_only'])
{
$sValue=number_format($sValue, 0, '', '');
}
}

public function filter($value, $type)
{
if (trim($value)=="")
Expand Down Expand Up @@ -276,4 +287,4 @@ public function questionProperties($prop = false)
return $prop?$props[$prop]:$props;
}
}
?>
?>

0 comments on commit 0c8fc79

Please sign in to comment.