diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index f668bd1c28b..ab819d5f849 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -8089,7 +8089,7 @@ class Form * @param int $forcecombo Force to load all values and output a standard combobox (with no beautification) * @param int<0,1> $disabled 1=Html component is disabled * @param string $selected_input_value Value of preselected input text (for use with ajax) - * @param string $objectfield Object:Field that contains the definition (in table $fields or $extrafields). Example: 'Object:xxx' or 'Module_Object:xxx' or 'Object:options_xxx' or 'Module_Object:options_xxx' + * @param string $objectfield Object:Field that contains the definition (in table $fields or $extrafields). Example: 'Object:xxx' or 'Object@module:xxx' (old syntax 'Module_Object:xxx') or 'Object:options_xxx' or 'Object@module:options_xxx' (old syntax 'Module_Object:options_xxx') * @return string Return HTML string * @see selectForFormsList(), select_thirdparty_list() */ diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index 7bb6759f3ce..256454a3925 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -12598,12 +12598,12 @@ function getElementProperties($elementType) * Fetch an object from its id and element_type * Inclusion of classes is automatic * - * @param int $element_id Element id (Use this or element_id but not both) - * @param string $element_type Element type ('module' or 'myobject@mymodule' or 'mymodule_myobject') - * @param string $element_ref Element ref (Use this or element_id but not both) - * @param int<0,2> $useCache if you want to store object in cache or get it from cache 0 => no use cache , 1 use cache, 2 force reload cache - * @param int $maxCacheByType number of object in cache for this element type - * @return int<-1,0>|object object || 0 || <0 if error + * @param int $element_id Element id (Use this or element_ref but not both. If id and ref are empty, object with no fetch is returned) + * @param string $element_type Element type ('module' or 'myobject@mymodule' or 'mymodule_myobject') + * @param string $element_ref Element ref (Use this or element_id but not both. If id and ref are empty, object with no fetch is returned) + * @param int<0,2> $useCache If you want to store object in cache or get it from cache 0 => no use cache , 1 use cache, 2 force reload cache + * @param int $maxCacheByType Number of object in cache for this element type + * @return int<-1,0>|object object || 0 || <0 if error * @see getElementProperties() */ function fetchObjectByElement($element_id, $element_type, $element_ref = '', $useCache = 0, $maxCacheByType = 10)