From 06398d907732df09a5dcc261a6468c974d020e2b Mon Sep 17 00:00:00 2001 From: jfefe Date: Sun, 17 Feb 2013 14:37:33 +0100 Subject: [PATCH] Fix : bad name of property when retrieve extrafields for thirdparty --- htdocs/core/class/commondocgenerator.class.php | 2 +- htdocs/societe/class/societe.class.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/core/class/commondocgenerator.class.php b/htdocs/core/class/commondocgenerator.class.php index ec9ae1d2870..d64a7c2710b 100755 --- a/htdocs/core/class/commondocgenerator.class.php +++ b/htdocs/core/class/commondocgenerator.class.php @@ -169,7 +169,7 @@ abstract class CommonDocGenerator { foreach($object->array_options as $key=>$label) { - $extrafields['company_options_'.$key] = $label; + $extrafields['company_'.$key] = $label; } $array_thirdparty = array_merge($array_thirdparty,$extrafields); } diff --git a/htdocs/societe/class/societe.class.php b/htdocs/societe/class/societe.class.php index dfeec3eaab7..7688eec0d66 100644 --- a/htdocs/societe/class/societe.class.php +++ b/htdocs/societe/class/societe.class.php @@ -865,7 +865,7 @@ class Societe extends CommonObject } foreach($extrafields->attribute_label as $key=>$label) { - $this->array_options[$key]=$label; + $this->array_options['options_'.$key]=$label; } } else