Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Error forging a SQL request on page eventorganization/conferenceorboothattendee_list.php

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
  • Loading branch information
glu000 and eldy authored Nov 30, 2024
1 parent 6e4ca0b commit 7690279
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ public function __construct(DoliDB $db)
if (isset($conf->global->EVENTORGANIZATION_FILTERATTENDEES_TYPE)
&& getDolGlobalString('EVENTORGANIZATION_FILTERATTENDEES_TYPE') !== ''
&& getDolGlobalString('EVENTORGANIZATION_FILTERATTENDEES_TYPE') !== '-1') {
$this->fields['fk_soc']['type'] .= ' AND client = '.((int) getDolGlobalInt('EVENTORGANIZATION_FILTERATTENDEES_TYPE', 0));
$this->fields['fk_soc']['type'] .= ' AND (client:=:'.((int) getDolGlobalInt('EVENTORGANIZATION_FILTERATTENDEES_TYPE', 0) . ')');
}

// Example to show how to set values of fields definition dynamically
Expand Down

0 comments on commit 7690279

Please sign in to comment.