avoid error
This commit is contained in:
parent
101b45e397
commit
87c9132a6d
@ -814,6 +814,8 @@ class ExtraFields
|
|||||||
// current object id can be use into filter
|
// current object id can be use into filter
|
||||||
if (strpos($InfoFieldList[4], '$ID$')!==false && !empty($objectid)) {
|
if (strpos($InfoFieldList[4], '$ID$')!==false && !empty($objectid)) {
|
||||||
$InfoFieldList[4]=str_replace('$ID$',$objectid,$InfoFieldList[4]);
|
$InfoFieldList[4]=str_replace('$ID$',$objectid,$InfoFieldList[4]);
|
||||||
|
} else {
|
||||||
|
$InfoFieldList[4]=str_replace('$ID$','0',$InfoFieldList[4]);
|
||||||
}
|
}
|
||||||
//We have to join on extrafield table
|
//We have to join on extrafield table
|
||||||
if (strpos($InfoFieldList[4], 'extra')!==false)
|
if (strpos($InfoFieldList[4], 'extra')!==false)
|
||||||
@ -1001,6 +1003,8 @@ class ExtraFields
|
|||||||
// current object id can be use into filter
|
// current object id can be use into filter
|
||||||
if (strpos($InfoFieldList[4], '$ID$')!==false && !empty($objectid)) {
|
if (strpos($InfoFieldList[4], '$ID$')!==false && !empty($objectid)) {
|
||||||
$InfoFieldList[4]=str_replace('$ID$',$objectid,$InfoFieldList[4]);
|
$InfoFieldList[4]=str_replace('$ID$',$objectid,$InfoFieldList[4]);
|
||||||
|
} else {
|
||||||
|
$InfoFieldList[4]=str_replace('$ID$','0',$InfoFieldList[4]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// We have to join on extrafield table
|
// We have to join on extrafield table
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user