summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Schneider2012-06-14 16:14:32 +0000
committerChristian Schneider2012-06-14 16:14:32 +0000
commitc03ebe57279751826e883373a63d12c8065b7556 (patch)
tree05d5d4a1161c85e0fb70c794f7e520be672a2408
parent756865fc0e045c430453a350cb5fd3734cd1cf28 (diff)
downloaditools-c03ebe57279751826e883373a63d12c8065b7556.tar.gz
itools-c03ebe57279751826e883373a63d12c8065b7556.tar.bz2
itools-c03ebe57279751826e883373a63d12c8065b7556.zip
Also cache localizedfields info, fixes bug with field localization
-rw-r--r--it_dbi.class4
1 files changed, 4 insertions, 0 deletions
diff --git a/it_dbi.class b/it_dbi.class
index 3ec2978..fbe9690 100644
--- a/it_dbi.class
+++ b/it_dbi.class
@@ -791,10 +791,14 @@ function _get_field_info()
$state = it_dbi::_state_get($dbid); # State could have been modified by query above
$state['fields'][$this->_p['table']] = $this->_fields;
$state['convertfunc'][$this->_p['table']] = $this->_convertfunc;
+ $state['localizedfields'][$this->_p['table']] = $this->_localizedfields;
it_dbi::_state_put($dbid, $state);
}
else # Existing _fields, copy other info too
+ {
$this->_convertfunc = $state['convertfunc'][$this->_p['table']];
+ $this->_localizedfields = $state['localizedfields'][$this->_p['table']];
+ }
foreach((array)$this->_fields as $field)
{