From 7c7cc5a83303dad6d5920cb87a00cac9a6ad626d Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Fri, 26 Jun 2020 08:50:58 +0200 Subject: Register fields added by _read_postprocess() so they get clear()ed --- it_dbi.class | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'it_dbi.class') diff --git a/it_dbi.class b/it_dbi.class index 6d0cdeb..00d5c99 100644 --- a/it_dbi.class +++ b/it_dbi.class @@ -730,8 +730,13 @@ function iterate() unset($this->_data['dyncols']); foreach (static::_read_postprocess($this->_data) as $field => $value) + { $this->$field = (isset($value) && $this->_convertfunc[$field]) ? ($this->_data[$field] = $this->_convertfunc[$field]($value)) : $value; + if (!array_key_exists($field, $this->_data)) # Register fields added by _read_postprocess() so they get clear()ed + $this->_data[$field] = $value; + } + if ($localizedfields) { $lang = T_lang(); -- cgit v1.2.3