Skip to content
Snippets Groups Projects
Commit 38f56cf9 authored by Ulysse Valdenaire's avatar Ulysse Valdenaire
Browse files

update c_actioncomm AC_TTA_TASK line, otherwise was not translated

parent 34306c18
No related branches found
No related tags found
2 merge requests!9fix traduction 'Lien tâche / Agenda',!8Fix ac tta task not translated
......@@ -257,11 +257,22 @@ class modTaskToAgenda extends DolibarrModules
*/
public function init($options='')
{
$sql = array();
$this->_load_tables('/tasktoagenda/sql/');
return $this->_init($sql, $options);
$error = false;
$sql = "UPDATE ". MAIN_DB_PREFIX. "c_actioncomm SET libelle='LinkTaskAgenda', module='task@projet', type='module' WHERE code = 'AC_TTA_TASK'";
$result = $this->db->query($sql);
if (! $result){
$error = true;
dol_print_error($this->db);
setEventMessages($this->db->error(), null, 'errors');
}
$sql = array();
return ! $error && $this->_init($sql, $options);
}
/**
......
......@@ -7,6 +7,7 @@ Module163004Desc = Module permettant l'enregistrement des tâches dans l'agenda.
# Actions
#######################################################################
ActionAC_TTA_TASK = Lien Tâche/Agenda
LinkTaskAgenda = Lien Tâche/Agenda
#######################################################################
# Configuration admin
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment