Fixed small bug in Survey validation where invalid branch expressions
wouldn't be shown Improved and i18n'ed Survey validation warning container
This commit is contained in:
parent
d19963fd8e
commit
571ca5db06
6 changed files with 28 additions and 8 deletions
|
|
@ -1200,15 +1200,12 @@ Returns an array of messages to inform a user what is logically wrong with the S
|
|||
|
||||
sub validateSurvey{
|
||||
my $self = shift;
|
||||
#check all goto's
|
||||
#bad goto expressions
|
||||
#check that all survey is able to be seen
|
||||
|
||||
my @messages;
|
||||
|
||||
#set up valid goto targets
|
||||
my $gotoTargets = $self->getGotoTargets();
|
||||
my $goodTargets;
|
||||
my $goodTargets = {};
|
||||
my $duplicateTargets;
|
||||
for my $g (@{$gotoTargets}) {
|
||||
$goodTargets->{$g}++;
|
||||
|
|
|
|||
|
|
@ -67,6 +67,10 @@ our $I18N = {
|
|||
message => q|Delete|,
|
||||
lastUpdated => 1224686319
|
||||
},
|
||||
'warnings' => {
|
||||
message => q|Warnings|,
|
||||
lastUpdated => 0
|
||||
},
|
||||
'section number' => {
|
||||
message => q|Section Number:|,
|
||||
lastUpdated => 1224686319
|
||||
|
|
@ -355,9 +359,9 @@ our $I18N = {
|
|||
lastUpdated => 0
|
||||
},
|
||||
'jump expression description' => {
|
||||
message => q|An expression used to control complex branching based user responses to previous questions.|,
|
||||
message => q|An expression used to control complex branching based user responses to previous questions. Ignored unless enableSurveyExpressionEngine enabled in your site config file.|,
|
||||
context => q|Description of the 'jump expression' field, used as hoverhelp in the edit answer dialog.|,
|
||||
lastUpdated => 0
|
||||
lastUpdated => 1239259550
|
||||
},
|
||||
'text answer' => {
|
||||
message => q|TextArea|,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue