link ics ok (todo: add name of speaker)

This commit is contained in:
Dorian Vabre 2021-05-20 17:24:27 +02:00
parent df81ac8622
commit 720a368b29
5 changed files with 25 additions and 9 deletions

View File

@ -1901,8 +1901,11 @@ class ActionComm extends CommonObject
$sql .= " AND ar.fk_element = 0";
}
}
if ($key == 'author') {
$sql .= " AND u.lastname = '".$this->db->escape($value)."'";
if ($key == 'module') {
$sql .= " AND c.module LIKE '%".$value."'";
}
if ($key == 'status') {
$sql .= " AND a.status =".$value;
}
}

View File

@ -134,6 +134,8 @@ class ConferenceOrBooth extends ActionComm
public $status;
// END MODULEBUILDER PROPERTIES
public $pubregister;
/**
* Constructor
*

View File

@ -430,11 +430,11 @@ if ($projectid > 0) {
// Define $urlwithroot
$urlwithouturlroot = preg_replace('/'.preg_quote(DOL_URL_ROOT, '/').'$/i', '', trim($dolibarr_main_url_root));
$urlwithroot = $urlwithouturlroot.DOL_URL_ROOT;
$getentity = ($conf->entity > 1 ? "&entity=".$conf->entity : "");
// Show message
$message = '<input type="text" id="onlinepaymenturl" class="quatrevingtpercent" value="'.$urlwithroot.'/public/agenda/agendaexport.php?format=ical'.$getentity.
'&exportkey='.($conf->global->MAIN_AGENDA_XCAL_EXPORTKEY ?urlencode($conf->global->MAIN_AGENDA_XCAL_EXPORTKEY) : '...')."&project=".$projectid.'">';
$message = '<a href="'.$urlwithroot.'/public/agenda/agendaexport.php?format=ical'.($conf->entity > 1 ? "&entity=".$conf->entity : "");
$message .= '&exportkey='.($conf->global->MAIN_AGENDA_XCAL_EXPORTKEY ?urlencode($conf->global->MAIN_AGENDA_XCAL_EXPORTKEY) : '...');
$message .= "&project=".$projectid.'&module='.urlencode('@eventorganization').'&status='.ConferenceOrBooth::STATUS_CONFIRMED.'">'.$langs->trans('DownloadICSLink').'</a>';
$message .= '</div>';
$message .= '<br>';
print $message;
@ -457,6 +457,7 @@ if ($projectid > 0) {
// --------------------------------------------------------------------
$sql = 'SELECT ';
$sql .= $object->getFieldList('t');
// Add fields from extrafields
if (!empty($extrafields->attributes[$object->table_element]['label'])) {
foreach ($extrafields->attributes[$object->table_element]['label'] as $key => $val) {

View File

@ -82,6 +82,7 @@ PriceOfBoothHelp=Subscription price to stand a booth
EventOrganizationICSLink=Link ICS for events
ConferenceOrBoothInformation=Conference Or Booth informations
Attendees = Attendees
DownloadICSLink = Download ICS link
EVENTORGANIZATION_SECUREKEY = Secure Key of the public registration link to a conference
SERVICE_BOOTH_LOCATION = Service used for the invoice row about a booth location
SERVICE_CONFERENCE_ATTENDEE_SUBSCRIPTION = Service used for the invoice row about an attendee subscription to a conference

View File

@ -135,11 +135,11 @@ if (GETPOST("notolderthan", 'int')) {
} else {
$filters['notolderthan'] = $conf->global->MAIN_AGENDA_EXPORT_PAST_DELAY;
}
if (GETPOST("author", 'apha')) {
$filters['author'] = GETPOST("author", 'apha');
if (GETPOST("module", 'alpha')) {
$filters['module'] = GETPOST("module", 'alpha');
}
if (GETPOST("module", 'apha')) {
$filters['module'] = GETPOST("module", 'apha');
if (GETPOST("status", 'int')) {
$filters['status'] = GETPOST("status", 'int');
}
// Check config
if (empty($conf->global->MAIN_AGENDA_XCAL_EXPORTKEY)) {
@ -206,6 +206,15 @@ foreach ($filters as $key => $value) {
if ($key == 'notactiontype') {
$filename .= '-notactiontype'.$value;
}
if ($key == 'actiontype') {
$filename .= '-actiontype'.$value;
}
if ($key == 'module') {
$filename .= '-module'.$value;
}
if ($key == 'status') {
$filename .= '-status'.$value;
}
}
// Add extension
if ($format == 'vcal') {