Skip to content

Commit

Permalink
Fix : bad name of property when retrieve extrafields for thirdparty
Browse files Browse the repository at this point in the history
  • Loading branch information
jfefe committed Feb 17, 2013
1 parent 527beab commit 16e9f6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion htdocs/core/class/commondocgenerator.class.php
Expand Up @@ -169,7 +169,7 @@ function get_substitutionarray_thirdparty($object,$outputlangs)
{
foreach($object->array_options as $key=>$label)
{
$extrafields['company_options_'.$key] = $label;
$extrafields['company_'.$key] = $label;
}
$array_thirdparty = array_merge($array_thirdparty,$extrafields);
}
Expand Down
2 changes: 1 addition & 1 deletion htdocs/societe/class/societe.class.php
Expand Up @@ -865,7 +865,7 @@ function fetch($rowid, $ref='', $ref_ext='', $ref_int='', $idprof1='',$idprof2='
}
foreach($extrafields->attribute_label as $key=>$label)
{
$this->array_options[$key]=$label;
$this->array_options['options_'.$key]=$label;
}
}
else
Expand Down

0 comments on commit 16e9f6d

Please sign in to comment.