Skip to content

Instantly share code, notes, and snippets.

@perlDreamer
Created October 12, 2010 17:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save perlDreamer/622583 to your computer and use it in GitHub Desktop.
Save perlDreamer/622583 to your computer and use it in GitHub Desktop.
diff --git a/lib/WebGUI/Workflow/Activity.pm b/lib/WebGUI/Workflow/Activity.pm
index 23bfb6e..5e3ecc8 100644
--- a/lib/WebGUI/Workflow/Activity.pm
+++ b/lib/WebGUI/Workflow/Activity.pm
@@ -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};
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment