@@ -64,6 +64,11 @@ class Adherent extends CommonObject
*/
public $ismultientitymanaged = 1;
+ /**
+ * @var int Does object support extrafields ? 0=No, 1=Yes
+ */
+ public $isextrafieldmanaged = 1;
+
/**
* @var string picto
@@ -1072,7 +1072,7 @@ function fillArrayOfXAxis($object, $tablealias, $labelofobject, &$arrayofxaxis,
{
global $langs, $extrafields, $db;
- if ($level >= 2) { // Limit scan on 2 levels max
+ if ($level >= 3) { // Limit scan on 2 levels max
return $arrayofxaxis;
}
@@ -80,6 +80,11 @@ class Product extends CommonObject
@@ -157,7 +157,7 @@ class PriceParser
// Retrieve all extrafields if not already not know (should not happen)
if (! is_object($extrafields)) {
$extrafields = new ExtraFields($this->db);
- $extrafields->fetch_name_optionals_label();
+ $extrafields->fetch_name_optionals_label($product->table_element);
$product->fetch_optionals();
@@ -67,6 +67,11 @@ class Project extends CommonObject
* @var string String with name of icon for myobject. Must be the part after the 'object_' into object_myobject.png
@@ -69,6 +69,11 @@ class User extends CommonObject