Skip to content

Commit

Permalink
Fixed issue: Negative numbers were not allowed in multiple short text…
Browse files Browse the repository at this point in the history
… with Numbers only property activated

Fixed issue: Templates using old QUESTION_START template were not working properly

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey@9079 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
c-schmitz committed Aug 20, 2010
1 parent 0c03420 commit 2715ae4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qanda.php
Expand Up @@ -776,7 +776,7 @@ function retrieveAnswers($ia, $notanswered=null, $notvalidated=null)
};
if(!defined('QUESTION_START'))
{
define('QUESTION_START' , file_get_contents('templates/'.validate_templatedir($thissurvey['template']).'/question_start.pstpl' , true));
define('QUESTION_START' , file_get_contents(sGetTemplatePath($thissurvey['template']).'/question_start.pstpl' , true));
};
$qtitle_custom = str_replace( $find , $replace , QUESTION_START);

Expand Down Expand Up @@ -3509,7 +3509,7 @@ function do_multipleshorttext($ia)

if ($qidattributes['numbers_only']==1)
{
$numbersonly = 'onkeypress="return goodchars(event,\'0123456789.\')"';
$numbersonly = 'onkeypress="return goodchars(event,\'-0123456789.\')"';
}
else
{
Expand Down

0 comments on commit 2715ae4

Please sign in to comment.