Merge pull request #14008 from bafbes/abb110217
fix:the result of explode is always an array
This commit is contained in:
commit
14a3ab68e6
@ -6042,7 +6042,7 @@ abstract class CommonObject
|
|||||||
// Several field into label (eq table:code|libelle:rowid)
|
// Several field into label (eq table:code|libelle:rowid)
|
||||||
$notrans = false;
|
$notrans = false;
|
||||||
$fields_label = explode('|', $InfoFieldList[1]);
|
$fields_label = explode('|', $InfoFieldList[1]);
|
||||||
if (is_array($fields_label))
|
if (count($fields_label) > 1)
|
||||||
{
|
{
|
||||||
$notrans = true;
|
$notrans = true;
|
||||||
foreach ($fields_label as $field_toshow)
|
foreach ($fields_label as $field_toshow)
|
||||||
@ -6204,7 +6204,7 @@ abstract class CommonObject
|
|||||||
$notrans = false;
|
$notrans = false;
|
||||||
// Several field into label (eq table:code|libelle:rowid)
|
// Several field into label (eq table:code|libelle:rowid)
|
||||||
$fields_label = explode('|', $InfoFieldList[1]);
|
$fields_label = explode('|', $InfoFieldList[1]);
|
||||||
if (is_array($fields_label)) {
|
if (count($fields_label) > 1) {
|
||||||
$notrans = true;
|
$notrans = true;
|
||||||
foreach ($fields_label as $field_toshow) {
|
foreach ($fields_label as $field_toshow) {
|
||||||
$labeltoshow .= $obj->$field_toshow.' ';
|
$labeltoshow .= $obj->$field_toshow.' ';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user