Skip to content

Commit 573f353

Browse files
committed
correct row values for select fields
1 parent 4e2b538 commit 573f353

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

interface/lib/classes/listform_actions.inc.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,14 @@ function prepareDataRow($rec) {
8787
$this->DataRowColor = ($this->DataRowColor == "#FFFFFF")?"#EEEEEE":"#FFFFFF";
8888
$rec["bgcolor"] = $this->DataRowColor;
8989

90+
// substitute value for select fields
91+
foreach($app->listform->listDef["item"] as $field) {
92+
$key = $field["field"];
93+
if($field['formtype'] == "SELECT") {
94+
$rec[$key] = $field['value'][$rec[$key]];
95+
}
96+
}
97+
9098
// The variable "id" contains always the index variable
9199
$rec["id"] = $rec[$this->idx_key];
92100

0 commit comments

Comments
 (0)