fix translation

This commit is contained in:
Florian HENRY 2021-03-26 20:18:22 +01:00
parent 7a6cc742a6
commit aa9d4342cd
2 changed files with 8 additions and 0 deletions

View File

@ -194,6 +194,13 @@ class ConferenceOrBoothAttendee extends CommonObject
$this->fields['entity']['enabled'] = 0;
}
if (!empty($conf->global->EVENTORGANIZATION_FILTERATTENDEES_CAT)) {
$this->fields['fk_soc']['type'] .= ' AND rowid IN (SELECT DISTINCT c.fk_soc FROM '.MAIN_DB_PREFIX.'categorie_societe as c WHERE c.fk_categorie='.(int) $conf->global->EVENTORGANIZATION_FILTERATTENDEES_CAT.')';
}
if ($conf->global->EVENTORGANIZATION_FILTERATTENDEES_TYPE!=='') {
$this->fields['fk_soc']['type'] .= ' AND client='.(int) $conf->global->EVENTORGANIZATION_FILTERATTENDEES_TYPE;
}
// Example to show how to set values of fields definition dynamically
/*if ($user->rights->eventorganization->conferenceorboothattendee->read) {
$this->fields['myfield']['visible'] = 1;

View File

@ -54,6 +54,7 @@ ConferenceOrBooth = Conference Or Booth
ConferenceOrBoothTab = Conference Or Booth
AmountOfSubscriptionPaid = Amount of subscription paid
DateSubscription = Date of subscription
ConferenceOrBoothAttendee = Conference Or Booth Attendee
#
# Template Mail