mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-24 20:01:36 +02:00
Add ability for extending class to specify its own numeric fields
This commit is contained in:
parent
1a0ae9c9cc
commit
4831a34ffa
@ -557,6 +557,12 @@ abstract class bo_merge
|
|||||||
}
|
}
|
||||||
// Look for numbers, set their value if needed
|
// Look for numbers, set their value if needed
|
||||||
$format = $replacement = '';
|
$format = $replacement = '';
|
||||||
|
if($this->numeric_fields) {
|
||||||
|
$names = array();
|
||||||
|
foreach($this->numeric_fields as $fieldname) {
|
||||||
|
$names[] = preg_quote($fieldname,'/');
|
||||||
|
}
|
||||||
|
}
|
||||||
switch($mimetype.$mso_application_progid)
|
switch($mimetype.$mso_application_progid)
|
||||||
{
|
{
|
||||||
case 'application/vnd.oasis.opendocument.spreadsheet': // open office calc
|
case 'application/vnd.oasis.opendocument.spreadsheet': // open office calc
|
||||||
|
Loading…
x
Reference in New Issue
Block a user