Merge pull request #623 from FHenry/3.3

3.3
This commit is contained in:
Regis Houssin 2013-01-21 05:31:44 -08:00
commit a9b0469f7d
2 changed files with 5 additions and 5 deletions

View File

@ -291,7 +291,7 @@ function getActionComm($authentication,$id)
//Retreive all extrafield for actioncomm
// fetch optionals attributes and labels
$extrafields=new ExtraFields($db);
$extralabels=$extrafields->fetch_name_optionals_label('actioncomm');
$extralabels=$extrafields->fetch_name_optionals_label('actioncomm',true);
//Get extrafield values
$actioncomm->fetch_optionals($actioncomm->id,$extralabels);
@ -436,7 +436,7 @@ function createActionComm($authentication,$actioncomm)
//Retreive all extrafield for actioncomm
// fetch optionals attributes and labels
$extrafields=new ExtraFields($db);
$extralabels=$extrafields->fetch_name_optionals_label('actioncomm');
$extralabels=$extrafields->fetch_name_optionals_label('actioncomm',true);
foreach($extrafields->attribute_label as $key=>$label)
{
$key='options_'.$key;

View File

@ -123,7 +123,7 @@ $thirdparty_fields= array(
//Retreive all extrafield for thirdsparty
// fetch optionals attributes and labels
$extrafields=new ExtraFields($db);
$extralabels=$extrafields->fetch_name_optionals_label('company');
$extralabels=$extrafields->fetch_name_optionals_label('company',true);
if (count($extrafields)>0) {
$extrafield_array = array();
}
@ -314,7 +314,7 @@ function getThirdParty($authentication,$id='',$ref='',$ref_ext='')
//Retreive all extrafield for thirdsparty
// fetch optionals attributes and labels
$extrafields=new ExtraFields($db);
$extralabels=$extrafields->fetch_name_optionals_label('company');
$extralabels=$extrafields->fetch_name_optionals_label('company',true);
//Get extrafield values
$thirdparty->fetch_optionals($thirdparty->id,$extralabels);
@ -428,7 +428,7 @@ function createThirdParty($authentication,$thirdparty)
//Retreive all extrafield for thirdsparty
// fetch optionals attributes and labels
$extrafields=new ExtraFields($db);
$extralabels=$extrafields->fetch_name_optionals_label('company');
$extralabels=$extrafields->fetch_name_optionals_label('company',true);
foreach($extrafields->attribute_label as $key=>$label)
{
$key='options_'.$key;