[dev] Another DataTree patch

Vilius Šumskas vilius at lnk.lt
Wed May 5 08:42:06 PDT 2004


Cituojama Jan Schneider <jan at horde.org>:

> But actually we simply missed two places where the attribute values have to
> be decoded again. This is fixed now in CVS.

Oh, now I see. Great it works. With small fix though (see attachment) :).
Cheers.



--
    Best Regards,

    Vilius Šumskas
    LNK TV system administrator
    mob.: +370 614 75713
    www.lnk.lt

-------------- next part --------------
Index: sql.php
===================================================================
RCS file: /repository/framework/DataTree/DataTree/sql.php,v
retrieving revision 1.119
diff -u -r1.119 sql.php
--- sql.php	5 May 2004 14:43:05 -0000	1.119
+++ sql.php	5 May 2004 15:39:42 -0000
@@ -761,7 +761,7 @@
             Horde::logMessage('SQL Query by DataTree_sql::getAttributes(): ' . $query, __FILE__, __LINE__, PEAR_LOG_DEBUG);
             $rows = $this->_db->getAll($query, DB_FETCHMODE_ASSOC);
             for ($i = 0; $i < count($rows); $i++) {
-                $rows[$i]['attribute_value'] = String::convertCharset($rows[$i]['attribute_value'], $this->_params['charset'], NLS::getCharset());
+                $rows[$i]['value'] = String::convertCharset($rows[$i]['value'], $this->_params['charset'], NLS::getCharset());
             }
             return $rows;
         }


More information about the dev mailing list