Add ability for extending class to specify its own numeric fields

This commit is contained in:
Nathan Gray 2011-03-14 22:06:23 +00:00
parent 1a0ae9c9cc
commit 4831a34ffa

View File

@ -557,6 +557,12 @@ abstract class bo_merge
}
// Look for numbers, set their value if needed
$format = $replacement = '';
if($this->numeric_fields) {
$names = array();
foreach($this->numeric_fields as $fieldname) {
$names[] = preg_quote($fieldname,'/');
}
}
switch($mimetype.$mso_application_progid)
{
case 'application/vnd.oasis.opendocument.spreadsheet': // open office calc