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
|
|
@ -5,6 +5,7 @@
|
||||||
- fixed: Rich Editor no longer makes other form controls show up as code in Safari 3
|
- 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: allowMedia addition to Rich Editor no longer causes upgrade problems
|
||||||
- fixed: Shop->hasShippingAddress help grammatical error
|
- 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
|
- fixed: can now turn off inheritUrlFromParent and the code is now more
|
||||||
robust, moved from Asset->update to Asset->fixUrl.
|
robust, moved from Asset->update to Asset->fixUrl.
|
||||||
- fixed: Time tracker can't post time once it's been posted.
|
- fixed: Time tracker can't post time once it's been posted.
|
||||||
|
|
|
||||||
|
|
@ -641,8 +641,10 @@ sub getFieldValue {
|
||||||
.' where thingDataId = ?',[$value]);
|
.' where thingDataId = ?',[$value]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
elsif ($field->{fieldType} eq "file") {
|
else {
|
||||||
$processedValue = WebGUI::Form::File->new($self->session,{value=>$value})->getValueAsHtml();
|
$processedValue
|
||||||
|
= WebGUI::Form::DynamicField->new( $self->session, %$field, defaultValue => $value )
|
||||||
|
->getValueAsHtml;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $processedValue;
|
return $processedValue;
|
||||||
|
|
|
||||||
|
|
@ -64,7 +64,7 @@ sub definition {
|
||||||
defaultValue=> 0
|
defaultValue=> 0
|
||||||
},
|
},
|
||||||
defaultValue=>{
|
defaultValue=>{
|
||||||
defaultValue=>undef
|
defaultValue=> 1
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
return $class->SUPER::definition($session, $definition);
|
return $class->SUPER::definition($session, $definition);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue