Skip to content

Commit

Permalink
Fix #32155
Browse files Browse the repository at this point in the history
Error forging a SQL request on page eventorganization/conferenceorboothattendee_list.php
  • Loading branch information
glu000 authored Nov 29, 2024
1 parent b9e81ef commit a3082d7
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 a3082d7

Please sign in to comment.