ftimme
2011-10-10 6e9c073b9082d6b9d96e1ef7aedecefc33b02eee
- Fixed #1776.
2 files modified
4 ■■■ changed files
interface/lib/classes/listform.inc.php 2 ●●● patch | view | raw | blame | history
interface/lib/classes/listform_actions.inc.php 2 ●●●●● patch | view | raw | blame | history
interface/lib/classes/listform.inc.php
@@ -282,7 +282,7 @@
    public function decode($record) 
    {
        global $conf, $app;
        if(is_array($record)) {
        if(is_array($record) && count($record) > 0) {
            foreach($this->listDef['item'] as $field){
                $key = $field['field'];
                if(isset($record[$key])) {
interface/lib/classes/listform_actions.inc.php
@@ -86,6 +86,7 @@
        $rec['bgcolor'] = $this->DataRowColor;
        
        //* substitute value for select fields
        if(is_array($app->listform->listDef['item']) && count($app->listform->listDef['item']) > 0) {
        foreach($app->listform->listDef['item'] as $field) {
            $key = $field['field'];
            if(isset($field['formtype']) && $field['formtype'] == 'SELECT') {
@@ -97,6 +98,7 @@
                $rec[$key] = @$field['value'][$rec[$key]];
            }
        }
        }
        
        //* The variable "id" contains always the index variable
        $rec['id'] = $rec[$this->idx_key];