fixed: thingy now has appropriate values for all field types
This commit is contained in:
parent
658335ac2b
commit
5ece4a1d8c
3 changed files with 6 additions and 3 deletions
|
|
@ -641,8 +641,10 @@ sub getFieldValue {
|
|||
.' where thingDataId = ?',[$value]);
|
||||
}
|
||||
}
|
||||
elsif ($field->{fieldType} eq "file") {
|
||||
$processedValue = WebGUI::Form::File->new($self->session,{value=>$value})->getValueAsHtml();
|
||||
else {
|
||||
$processedValue
|
||||
= WebGUI::Form::DynamicField->new( $self->session, %$field, defaultValue => $value )
|
||||
->getValueAsHtml;
|
||||
}
|
||||
|
||||
return $processedValue;
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ sub definition {
|
|||
defaultValue=> 0
|
||||
},
|
||||
defaultValue=>{
|
||||
defaultValue=>undef
|
||||
defaultValue=> 1
|
||||
},
|
||||
});
|
||||
return $class->SUPER::definition($session, $definition);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue