Fixing style errors.
This commit is contained in:
parent
a1f6886e97
commit
ee701bb480
@ -1666,7 +1666,7 @@ class ExtraFields
|
|||||||
$value = price($value, 0, $langs, 0, 0, -1);
|
$value = price($value, 0, $langs, 0, 0, -1);
|
||||||
}
|
}
|
||||||
} elseif ($type == 'select') {
|
} elseif ($type == 'select') {
|
||||||
$valstr = (!empty($param['options'][$value]) ? $param['options'][$value] : '');
|
$valstr = (!empty($param['options'][$value]) ? $param['options'][$value] : '');
|
||||||
if (($pos = strpos($valstr, "|")) !== false) {
|
if (($pos = strpos($valstr, "|")) !== false) {
|
||||||
$valstr = substr($valstr, 0, $pos);
|
$valstr = substr($valstr, 0, $pos);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -35,7 +35,7 @@ if (!empty($extrafieldsobjectkey)) { // $extrafieldsobject is the $object->table
|
|||||||
}
|
}
|
||||||
$value = $datenotinstring;
|
$value = $datenotinstring;
|
||||||
} else {
|
} else {
|
||||||
$value = (!empty($obj->$tmpkey) ? $obj->$tmpkey : '');
|
$value = (!empty($obj->$tmpkey) ? $obj->$tmpkey : '');
|
||||||
}
|
}
|
||||||
// If field is a computed field, we make computation to get value
|
// If field is a computed field, we make computation to get value
|
||||||
if ($extrafields->attributes[$extrafieldsobjectkey]['computed'][$key]) {
|
if ($extrafields->attributes[$extrafieldsobjectkey]['computed'][$key]) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user