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:
Patrick Donelan 2009-04-09 07:57:37 +00:00
parent d19963fd8e
commit 571ca5db06
6 changed files with 28 additions and 8 deletions

View file

@ -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}++;