From 4cdd4d9d4a303cc9f8c6683108ccc1e582d693b7 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 11 Mar 2014 17:35:50 +0000 Subject: [PATCH] Update opendocument spreadsheet numeric cell attributes to include celcext:value-type. --- etemplate/inc/class.bo_merge.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etemplate/inc/class.bo_merge.inc.php b/etemplate/inc/class.bo_merge.inc.php index 9d3d20a30b..9ce81a933f 100644 --- a/etemplate/inc/class.bo_merge.inc.php +++ b/etemplate/inc/class.bo_merge.inc.php @@ -1084,8 +1084,8 @@ abstract class bo_merge switch($mimetype) { case 'application/vnd.oasis.opendocument.spreadsheet': // open office calc - $format = '/]+?)office:value-type="[^"]+"([^>]*?)>.?<([a-z].*?)[^>]*>('.implode('|',$names).')<\/\3>.?<\/table:table-cell>/s'; - $replacement = '$4'; + $format = '/]+?)office:value-type="[^"]+"([^>]*?)(?:calcext:value-type="[^"]+")>.?<([a-z].*?)[^>]*>('.implode('|',$names).')<\/\3>.?<\/table:table-cell>/s'; + $replacement = '<$3>$4'; break; case 'application/vnd.oasis.opendocument.text': // tables in open office writer $format = '/]+?)office:value-type="[^"]+"([^>]*?)>.?<([a-z].*?)[^>]*>('.implode('|',$names).')<\/\3>.?<\/table:table-cell>/s';