fixed: List style Content profile fields broken
This commit is contained in:
parent
557775bb38
commit
1e9b0277e3
2 changed files with 4 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue