fixed: thingy now has appropriate values for all field types

This commit is contained in:
Doug Bell 2008-06-20 21:51:50 +00:00
parent 658335ac2b
commit 5ece4a1d8c
3 changed files with 6 additions and 3 deletions

View file

@ -5,6 +5,7 @@
- fixed: Rich Editor no longer makes other form controls show up as code in Safari 3
- fixed: allowMedia addition to Rich Editor no longer causes upgrade problems
- fixed: Shop->hasShippingAddress help grammatical error
- fixed: Thingy now shows appropriate display values for all field types
- fixed: can now turn off inheritUrlFromParent and the code is now more
robust, moved from Asset->update to Asset->fixUrl.
- fixed: Time tracker can't post time once it's been posted.

View file

@ -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;

View file

@ -64,7 +64,7 @@ sub definition {
defaultValue=> 0
},
defaultValue=>{
defaultValue=>undef
defaultValue=> 1
},
});
return $class->SUPER::definition($session, $definition);