From 92e29ff0c4ecc35852c06cf4d41bb6674ade06d4 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 18 Mar 2014 14:13:57 +0000 Subject: [PATCH] Fix merge print to work with both old & new ODF spreadsheets - adds support for calcext:value-type cell attribute --- etemplate/inc/class.bo_merge.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/inc/class.bo_merge.inc.php b/etemplate/inc/class.bo_merge.inc.php index 9ce81a933f..16cd199fa5 100644 --- a/etemplate/inc/class.bo_merge.inc.php +++ b/etemplate/inc/class.bo_merge.inc.php @@ -1084,7 +1084,7 @@ abstract class bo_merge switch($mimetype) { case 'application/vnd.oasis.opendocument.spreadsheet': // open office calc - $format = '/]+?)office:value-type="[^"]+"([^>]*?)(?:calcext:value-type="[^"]+")>.?<([a-z].*?)[^>]*>('.implode('|',$names).')<\/\3>.?<\/table:table-cell>/s'; + $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