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;
|
$sql="UPDATE ".MAIN_DB_PREFIX.$tableName;
|
||||||
|
|
||||||
if ($TableName=="actioncomm")
|
if ($tableName == "actioncomm")
|
||||||
{
|
{
|
||||||
$sql.= " SET fk_project=".$this->id;
|
$sql.= " SET fk_project=".$this->id;
|
||||||
$sql.= " WHERE id=".$elementSelectId;
|
$sql.= " WHERE id=".$elementSelectId;
|
||||||
|
|||||||
@ -382,6 +382,7 @@ $listofreferent=array(
|
|||||||
'buttonnew'=>'AddTimeSpent',
|
'buttonnew'=>'AddTimeSpent',
|
||||||
'testnew'=>$user->rights->projet->creer,
|
'testnew'=>$user->rights->projet->creer,
|
||||||
'test'=>($conf->projet->enabled && $user->rights->projet->lire && empty($conf->global->PROJECT_HIDE_TASKS))),
|
'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(
|
'agenda'=>array(
|
||||||
'name'=>"Agenda",
|
'name'=>"Agenda",
|
||||||
'title'=>"ListActionsAssociatedProject",
|
'title'=>"ListActionsAssociatedProject",
|
||||||
@ -394,6 +395,7 @@ $listofreferent=array(
|
|||||||
'buttonnew'=>'AddEvent',
|
'buttonnew'=>'AddEvent',
|
||||||
'testnew'=>$user->rights->agenda->myactions->create,
|
'testnew'=>$user->rights->agenda->myactions->create,
|
||||||
'test'=>$conf->agenda->enabled && $user->rights->agenda->myactions->read),
|
'test'=>$conf->agenda->enabled && $user->rights->agenda->myactions->read),
|
||||||
|
*/
|
||||||
);
|
);
|
||||||
|
|
||||||
$parameters=array('listofreferent'=>$listofreferent);
|
$parameters=array('listofreferent'=>$listofreferent);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user