mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-05 17:18:13 +01:00
Support extrafields in selectForForms
This commit is contained in:
@@ -8030,6 +8030,7 @@ class Form
|
|||||||
|
|
||||||
// Search data
|
// Search data
|
||||||
$sql = "SELECT t.rowid, " . $fieldstoshow . " FROM " . $this->db->prefix() . $objecttmp->table_element . " as t";
|
$sql = "SELECT t.rowid, " . $fieldstoshow . " FROM " . $this->db->prefix() . $objecttmp->table_element . " as t";
|
||||||
|
$sql .= " LEFT JOIN " . $this->db->prefix() . $objecttmp->table_element . "_extrafields as e ON t.rowid=e.fk_object";
|
||||||
if (isset($objecttmp->ismultientitymanaged)) {
|
if (isset($objecttmp->ismultientitymanaged)) {
|
||||||
if (!is_numeric($objecttmp->ismultientitymanaged)) {
|
if (!is_numeric($objecttmp->ismultientitymanaged)) {
|
||||||
$tmparray = explode('@', $objecttmp->ismultientitymanaged);
|
$tmparray = explode('@', $objecttmp->ismultientitymanaged);
|
||||||
|
|||||||
Reference in New Issue
Block a user