Commit 573f3531 authored by tbrehm's avatar tbrehm
Browse files

correct row values for select fields

parent 4e2b538d
......@@ -87,6 +87,14 @@ class listform_actions {
$this->DataRowColor = ($this->DataRowColor == "#FFFFFF")?"#EEEEEE":"#FFFFFF";
$rec["bgcolor"] = $this->DataRowColor;
// substitute value for select fields
foreach($app->listform->listDef["item"] as $field) {
$key = $field["field"];
if($field['formtype'] == "SELECT") {
$rec[$key] = $field['value'][$rec[$key]];
}
}
// The variable "id" contains always the index variable
$rec["id"] = $rec[$this->idx_key];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment