mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
Avoid value not being properly parsed in calc
This commit is contained in:
parent
8c7945d41c
commit
6ccc3e5713
@ -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 = '/<table:table-cell([^>]+?)office:value-type="[^"]+"([^>]*?)>.?<([a-z].*?)[^>]*>\$\$('.implode('|',$names).')\$\$<\/\3>.?<\/table:table-cell>/s';
|
||||
$replacement = '<table:table-cell$1office:value-type="date" office:date-value="\$\$$4\$\$"$2><$3>\$\$$4\$\$</$3></table:table-cell>';
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user