Update interface_50_modEventOrganization_EventOrganization.class.php
This commit is contained in:
parent
6742241639
commit
e8bbef8d2d
@ -74,15 +74,17 @@ class InterfaceEventOrganization extends DolibarrTriggers
|
|||||||
if (empty($conf->eventorganization->enabled)) {
|
if (empty($conf->eventorganization->enabled)) {
|
||||||
return 0; // Module not active, we do nothing
|
return 0; // Module not active, we do nothing
|
||||||
}
|
}
|
||||||
|
|
||||||
$error=0;
|
$error=0;
|
||||||
|
|
||||||
// Actions
|
// Actions
|
||||||
if ($action == 'PROJECT_VALIDATE') {
|
if ($action == 'PROJECT_VALIDATE') {
|
||||||
// Load translation files required by the page
|
|
||||||
$langs->loadLangs(array("eventorganization"));
|
|
||||||
|
|
||||||
if (!empty($conf->global->EVENTORGANIZATION_TASK_LABEL) && !empty($object->usage_organize_event)) {
|
if (!empty($conf->global->EVENTORGANIZATION_TASK_LABEL) && !empty($object->usage_organize_event)) {
|
||||||
$taskToDo = explode("\n", $conf->global->EVENTORGANIZATION_TASK_LABEL);
|
$taskToDo = explode("\n", $conf->global->EVENTORGANIZATION_TASK_LABEL);
|
||||||
if (is_array($taskToDo) && count($taskToDo)>0) {
|
if (is_array($taskToDo) && count($taskToDo)>0) {
|
||||||
|
// Load translation files required by the page
|
||||||
|
$langs->loadLangs(array("eventorganization"));
|
||||||
|
|
||||||
$this->db->begin();
|
$this->db->begin();
|
||||||
foreach ($taskToDo as $taskLabel) {
|
foreach ($taskToDo as $taskLabel) {
|
||||||
$task = new Task($this->db);
|
$task = new Task($this->db);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user