diff --git a/etemplate/inc/class.bo_merge.inc.php b/etemplate/inc/class.bo_merge.inc.php index 57d8634ede..68ad83d97f 100644 --- a/etemplate/inc/class.bo_merge.inc.php +++ b/etemplate/inc/class.bo_merge.inc.php @@ -1280,6 +1280,9 @@ abstract class bo_merge switch($mimetype) { case 'application/vnd.oasis.opendocument.spreadsheet': // open office calc + // Removing these forces calc to respect our set value-type + $content = str_ireplace('calcext:value-type="string"','',$content); + $format = '/]+?)office:value-type="[^"]+"([^>]*?)>.?<([a-z].*?)[^>]*>\$\$('.implode('|',$names).')\$\$<\/\3>.?<\/table:table-cell>/s'; $replacement = '<$3>\$\$$4\$\$'; break;