wip on adding a filter for the ics file + fix on class name
This commit is contained in:
parent
48bbb500d3
commit
c85b75924f
@ -1901,6 +1901,9 @@ class ActionComm extends CommonObject
|
||||
$sql .= " AND ar.fk_element = 0";
|
||||
}
|
||||
}
|
||||
if ($key == 'author') {
|
||||
$sql .= " AND c.type = '".$this->db->escape($value)."'";
|
||||
}
|
||||
}
|
||||
|
||||
$sql .= " AND a.datep IS NOT NULL"; // To exclude corrupted events and avoid errors in lightning/sunbird import
|
||||
|
||||
@ -135,6 +135,9 @@ if (GETPOST("notolderthan", 'int')) {
|
||||
} else {
|
||||
$filters['notolderthan'] = $conf->global->MAIN_AGENDA_EXPORT_PAST_DELAY;
|
||||
}
|
||||
if (GETPOST("author", 'apha')) {
|
||||
$filters['author'] = GETPOST("author", 'apha');
|
||||
}
|
||||
|
||||
// Check config
|
||||
if (empty($conf->global->MAIN_AGENDA_XCAL_EXPORTKEY)) {
|
||||
|
||||
@ -439,7 +439,7 @@ if (empty($reshook) && $action == 'add') {
|
||||
}
|
||||
} else {
|
||||
// If no price has been set for the booth, we confirm it as suggested and we update
|
||||
$conforbooth->status = CONFERENCEORBOOTH::STATUS_SUGGESTED;
|
||||
$conforbooth->status = ConferenceOrBooth::STATUS_SUGGESTED;
|
||||
$conforbooth->update($user);
|
||||
// Sending mail
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/class/CMailFile.class.php';
|
||||
|
||||
@ -373,7 +373,7 @@ if (empty($reshook) && $action == 'add') {
|
||||
$error++;
|
||||
$errmsg .= $conforbooth->error;
|
||||
} else {
|
||||
$conforbooth->status = CONFERENCEORBOOTH::STATUS_SUGGESTED;
|
||||
$conforbooth->status = ConferenceOrBooth::STATUS_SUGGESTED;
|
||||
$conforbooth->update($user);
|
||||
|
||||
// Sending mail
|
||||
|
||||
Loading…
Reference in New Issue
Block a user