Fix ident
This commit is contained in:
parent
ba7b601387
commit
cc971f4204
@ -274,7 +274,6 @@ function getActionComm($authentication, $id)
|
|||||||
$result=$actioncomm->fetch($id);
|
$result=$actioncomm->fetch($id);
|
||||||
if ($result > 0)
|
if ($result > 0)
|
||||||
{
|
{
|
||||||
|
|
||||||
$actioncomm_result_fields=array(
|
$actioncomm_result_fields=array(
|
||||||
'id' => $actioncomm->id,
|
'id' => $actioncomm->id,
|
||||||
'ref'=> $actioncomm->ref,
|
'ref'=> $actioncomm->ref,
|
||||||
@ -299,19 +298,20 @@ function getActionComm($authentication, $id)
|
|||||||
'contactid'=> $actioncomm->contactid,
|
'contactid'=> $actioncomm->contactid,
|
||||||
'projectid'=> $actioncomm->fk_project,
|
'projectid'=> $actioncomm->fk_project,
|
||||||
'fk_element'=> $actioncomm->fk_element,
|
'fk_element'=> $actioncomm->fk_element,
|
||||||
'elementtype'=> $actioncomm->elementtype);
|
'elementtype'=> $actioncomm->elementtype
|
||||||
|
);
|
||||||
|
|
||||||
//Retreive all extrafield for actioncomm
|
// Retreive all extrafield for actioncomm
|
||||||
// fetch optionals attributes and labels
|
// fetch optionals attributes and labels
|
||||||
$extrafields=new ExtraFields($db);
|
$extrafields=new ExtraFields($db);
|
||||||
$extralabels=$extrafields->fetch_name_optionals_label('actioncomm', true);
|
$extralabels=$extrafields->fetch_name_optionals_label('actioncomm', true);
|
||||||
//Get extrafield values
|
//Get extrafield values
|
||||||
$actioncomm->fetch_optionals();
|
$actioncomm->fetch_optionals();
|
||||||
|
|
||||||
foreach($extrafields->attribute_label as $key=>$label)
|
foreach($extrafields->attribute_label as $key=>$label)
|
||||||
{
|
{
|
||||||
$actioncomm_result_fields=array_merge($actioncomm_result_fields, array('options_'.$key => $actioncomm->array_options['options_'.$key]));
|
$actioncomm_result_fields=array_merge($actioncomm_result_fields, array('options_'.$key => $actioncomm->array_options['options_'.$key]));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create
|
// Create
|
||||||
$objectresp = array(
|
$objectresp = array(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user