Pluggable::load is not a class method.

This commit is contained in:
Colin Kuskie 2009-06-03 01:41:03 +00:00
parent 216a48580a
commit f49d96152e

View file

@ -117,7 +117,7 @@ sub create {
# Get the field's data type
$properties->{fieldType} ||= "ReadOnly";
my $formClass = $self->getFormControlClass;
eval { WebGUI::Pluggable->load($formClass) };
eval { WebGUI::Pluggable::load($formClass) };
my $dbDataType = $formClass->getDatabaseFieldType;
# Add the column to the userProfileData table
@ -735,7 +735,7 @@ sub rename {
# Rename the userProfileData column
my $fieldClass = $self->getFormControlClass;
eval { WebGUI::Pluggable->load($fieldClass) };
eval { WebGUI::Pluggable::load($fieldClass) };
my $dbDataType = $fieldClass->getDatabaseFieldType;
$self->session->db->write(
@ -852,7 +852,7 @@ sub set {
if ($properties->{fieldType} ne $originalFieldType) {
# Create a copy of the new properties so we don't mess them up
my $fieldClass = $self->getFormControlClass;
eval { WebGUI::Pluggable->load($fieldClass) };
eval { WebGUI::Pluggable::load($fieldClass) };
my $dbDataType
= $fieldClass->new($session, $self->formProperties($properties))->getDatabaseFieldType;