commit
19e780c53f
@ -420,10 +420,11 @@ class doc_generic_user_odt extends ModelePDFUser
|
|||||||
return -1;
|
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) {
|
foreach($object as $key => $value) {
|
||||||
if (!is_array($value) && !is_object($value)) {
|
if (!is_array($value) && !is_object($value)) {
|
||||||
$array_other['object_'.$key] = $value;
|
$array_other[$array_key.'_'.$key] = $value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $array_other;
|
return $array_other;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user