SQLForm: processing of Macro's in default value didn't work.

This commit is contained in:
Yung Han Khoe 2007-02-23 16:32:24 +00:00
parent 6683d27795
commit 5c09bbfce8

View file

@ -741,7 +741,8 @@ my $sth = $dbLink->db->unconditionalRead($definition{sqlQuery}." order by ".$de
}
$properties->{options} = $options;
$properties->{processedDefaultValue} = WebGUI::Macro::process($self->session, $definition{defaultValue});
$properties->{processedDefaultValue} = $definition{defaultValue};
WebGUI::Macro::process($self->session,\$properties->{processedDefaultValue});
$properties->{fieldId} = $fieldId;
$self->{_fieldPropertiesCache}->{$fieldId} = {%definition, %$properties};