commit
19e780c53f
@ -420,12 +420,13 @@ class doc_generic_user_odt extends ModelePDFUser
|
||||
return -1;
|
||||
}
|
||||
|
||||
function get_substitutionarray_object($object,$outputlangs) {
|
||||
function get_substitutionarray_object($object,$outputlangs,$array_key='object') {
|
||||
$array_other=array();
|
||||
foreach($object as $key => $value) {
|
||||
if(!is_array($value) && !is_object($value)) {
|
||||
$array_other['object_'.$key] = $value;
|
||||
if (!is_array($value) && !is_object($value)) {
|
||||
$array_other[$array_key.'_'.$key] = $value;
|
||||
}
|
||||
}
|
||||
}
|
||||
return $array_other;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user