mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix duplicate view of agenda/events for projects
This commit is contained in:
parent
40fa816b99
commit
477b9c8338
|
|
@ -1498,7 +1498,7 @@ class Project extends CommonObject
|
|||
{
|
||||
$sql="UPDATE ".MAIN_DB_PREFIX.$tableName;
|
||||
|
||||
if ($TableName=="actioncomm")
|
||||
if ($tableName == "actioncomm")
|
||||
{
|
||||
$sql.= " SET fk_project=".$this->id;
|
||||
$sql.= " WHERE id=".$elementSelectId;
|
||||
|
|
|
|||
|
|
@ -382,6 +382,7 @@ $listofreferent=array(
|
|||
'buttonnew'=>'AddTimeSpent',
|
||||
'testnew'=>$user->rights->projet->creer,
|
||||
'test'=>($conf->projet->enabled && $user->rights->projet->lire && empty($conf->global->PROJECT_HIDE_TASKS))),
|
||||
/* No need for this, available on dedicated tab "Agenda/Events"
|
||||
'agenda'=>array(
|
||||
'name'=>"Agenda",
|
||||
'title'=>"ListActionsAssociatedProject",
|
||||
|
|
@ -394,6 +395,7 @@ $listofreferent=array(
|
|||
'buttonnew'=>'AddEvent',
|
||||
'testnew'=>$user->rights->agenda->myactions->create,
|
||||
'test'=>$conf->agenda->enabled && $user->rights->agenda->myactions->read),
|
||||
*/
|
||||
);
|
||||
|
||||
$parameters=array('listofreferent'=>$listofreferent);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user