'' is no longer a special value for Workflow Activities, that will cause them to pull their defaultValue. Instead, only undef will do that. Fixes bug #11900

This commit is contained in:
Colin Kuskie 2010-10-12 10:50:26 -07:00
parent c46685a861
commit a614d4f230
2 changed files with 2 additions and 1 deletions

View file

@ -315,7 +315,7 @@ sub new {
my %data = (%{$main}, %{$sub});
for my $definition (reverse @{$class->definition($session)}) {
for my $property (keys %{$definition->{properties}}) {
if(!defined $data{$property} || $data{$property} eq '' && $definition->{properties}{$property}{defaultValue}) {
if(!defined $data{$property}) {
$data{$property} = $definition->{properties}{$property}{defaultValue};
}
}