Update commonobject.
Don't think $fk_delivery_address is deprecated, also no alternative indicated. Switch of implode paramenters. showInputField preselected value for array type can be array.
This commit is contained in:
parent
9e509a805a
commit
5866facf11
@ -312,7 +312,6 @@ abstract class CommonObject
|
|||||||
/**
|
/**
|
||||||
* @var int Delivery address ID
|
* @var int Delivery address ID
|
||||||
* @see setDeliveryAddress()
|
* @see setDeliveryAddress()
|
||||||
* @deprecated
|
|
||||||
*/
|
*/
|
||||||
public $fk_delivery_address;
|
public $fk_delivery_address;
|
||||||
|
|
||||||
@ -5009,7 +5008,7 @@ abstract class CommonObject
|
|||||||
{
|
{
|
||||||
$value_arr = GETPOST($postfieldkey, 'array'); // check if an array
|
$value_arr = GETPOST($postfieldkey, 'array'); // check if an array
|
||||||
if (!empty($value_arr)) {
|
if (!empty($value_arr)) {
|
||||||
$value_key = implode($value_arr, ',');
|
$value_key = implode(',', $value_arr);
|
||||||
} else {
|
} else {
|
||||||
$value_key = '';
|
$value_key = '';
|
||||||
}
|
}
|
||||||
@ -5801,7 +5800,7 @@ abstract class CommonObject
|
|||||||
*
|
*
|
||||||
* @param array $val Array of properties for field to show (used only if ->fields not defined)
|
* @param array $val Array of properties for field to show (used only if ->fields not defined)
|
||||||
* @param string $key Key of attribute
|
* @param string $key Key of attribute
|
||||||
* @param string $value Preselected value to show (for date type it must be in timestamp format, for amount or price it must be a php numeric value)
|
* @param string|array $value Preselected value to show (for date type it must be in timestamp format, for amount or price it must be a php numeric value, for array type must be array)
|
||||||
* @param string $moreparam To add more parameters on html input tag
|
* @param string $moreparam To add more parameters on html input tag
|
||||||
* @param string $keysuffix Prefix string to add into name and id of field (can be used to avoid duplicate names)
|
* @param string $keysuffix Prefix string to add into name and id of field (can be used to avoid duplicate names)
|
||||||
* @param string $keyprefix Suffix string to add into name and id of field (can be used to avoid duplicate names)
|
* @param string $keyprefix Suffix string to add into name and id of field (can be used to avoid duplicate names)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user