fixed: List style Content profile fields broken

This commit is contained in:
Graham Knop 2008-07-10 20:13:42 +00:00
parent 557775bb38
commit 1e9b0277e3
2 changed files with 4 additions and 4 deletions

View file

@ -18,6 +18,7 @@
- fixed: Calendar: Reorder Events in Week View Broken
- Added more information about workflow instance errors, so we can debug without having
to watch SPECTRE's debug output.
- fixed: List style Content profile fields broken
7.5.15
- fixed: Colorpicker window would not open (Martin Kamerbeek / Oqapi)

View file

@ -1003,11 +1003,11 @@ sub getEditForm {
my $meta = $self->getMetaDataFields();
foreach my $field (keys %$meta) {
my $fieldType = $meta->{$field}{fieldType} || "text";
my $options;
my $options = $meta->{$field}{possibleValues};
# Add a "Select..." option on top of a select list to prevent from
# saving the value on top of the list when no choice is made.
if($fieldType eq "selectList") {
$options = {"", $i18n->get("Select")};
if("\l$fieldType" eq "selectBox") {
$options = "|" . $i18n->get("Select") . "\n" . $options;
}
$tabform->getTab("meta")->dynamicField(
name=>"metadata_".$meta->{$field}{fieldId},
@ -1015,7 +1015,6 @@ sub getEditForm {
uiLevel=>5,
value=>$meta->{$field}{value},
extras=>qq/title="$meta->{$field}{description}"/,
possibleValues=>$meta->{$field}{possibleValues},
options=>$options,
fieldType=>$fieldType
);