Author: spadkins
Date: Fri Jun 16 13:36:41 2006
New Revision: 6515
Modified:
p5ee/trunk/App-Widget/lib/App/Widget.pm
Log:
Fixed bug in get_theme_value, needed to use labels instead of values
Modified: p5ee/trunk/App-Widget/lib/App/Widget.pm
==============================================================================
--- p5ee/trunk/App-Widget/lib/App/Widget.pm (original)
+++ p5ee/trunk/App-Widget/lib/App/Widget.pm Fri Jun 16 13:36:41 2006
@@ -460,6 +460,7 @@
$theme = $context->get_user_option("theme") || "default";
$self->{theme} = $theme if ($theme);
}
+
my $theme_domain = $context->value_domain("theme.$theme",
class => "App::ValueDomain::Repository",
repository => "default",
@@ -467,10 +468,10 @@
params => { name => "theme.$theme" },
valuecolumn => "value",
labelcolumn => "label");
- $theme_values = $theme_domain->values();
+ $theme_values = $theme_domain->labels();
$self->{theme_values} = $theme_values;
}
- my $name = $self->{name};
+ my $name = $self->{name};
my $class = ref($self);
my $value = $theme_values->{"$name.$var"};
$value = $theme_values->{"$class.$var"} if (!defined $value);