Fix #14588 - export all geometry objects as hex (ODS, ODT)
Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
parent
928febd9a3
commit
b50a85bb04
@ -261,6 +261,10 @@ class ExportOds extends ExportPlugin
|
||||
while ($row = $GLOBALS['dbi']->fetchRow($result)) {
|
||||
$GLOBALS['ods_buffer'] .= '<table:table-row>';
|
||||
for ($j = 0; $j < $fields_cnt; $j++) {
|
||||
if ($fields_meta[$j]->type === 'geometry') {
|
||||
// export GIS types as hex
|
||||
$row[$j] = '0x' . bin2hex($row[$j]);
|
||||
}
|
||||
if (!isset($row[$j]) || is_null($row[$j])) {
|
||||
$GLOBALS['ods_buffer']
|
||||
.= '<table:table-cell office:value-type="string">'
|
||||
|
||||
@ -301,6 +301,10 @@ class ExportOdt extends ExportPlugin
|
||||
while ($row = $GLOBALS['dbi']->fetchRow($result)) {
|
||||
$GLOBALS['odt_buffer'] .= '<table:table-row>';
|
||||
for ($j = 0; $j < $fields_cnt; $j++) {
|
||||
if ($fields_meta[$j]->type === 'geometry') {
|
||||
// export GIS types as hex
|
||||
$row[$j] = '0x' . bin2hex($row[$j]);
|
||||
}
|
||||
if (!isset($row[$j]) || is_null($row[$j])) {
|
||||
$GLOBALS['odt_buffer']
|
||||
.= '<table:table-cell office:value-type="string">'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user