Fix link on workboard
Fix warning picto is missing on task list
This commit is contained in:
parent
0e06f116a2
commit
473ab18306
@ -932,6 +932,7 @@ class ActionComm extends CommonObject
|
||||
$response->warning_delay = $conf->agenda->warning_delay/60/60/24;
|
||||
$response->label = $langs->trans("ActionsToDo");
|
||||
$response->url = DOL_URL_ROOT.'/comm/action/listactions.php?status=todo&mainmenu=agenda';
|
||||
if ($user->rights->agenda->allactions->read) $response->url.='&filtert=-1';
|
||||
$response->img = img_object($langs->trans("Actions"),"action");
|
||||
|
||||
// This assignment in condition is not a bug. It allows walking the results.
|
||||
|
||||
@ -1627,8 +1627,8 @@ class Project extends CommonObject
|
||||
$response = new WorkboardResponse();
|
||||
$response->warning_delay = $conf->projet->warning_delay/60/60/24;
|
||||
$response->label = $langs->trans("OpenedProjects");
|
||||
if ($user->rights->projet->all->lire) $response->url = DOL_URL_ROOT.'/projet/index.php?search_status=1&mainmenu=project';
|
||||
else $response->url = DOL_URL_ROOT.'/projet/index.php?mode=mine&search_status=1&mainmenu=project';
|
||||
if ($user->rights->projet->all->lire) $response->url = DOL_URL_ROOT.'/projet/list.php?search_status=1&mainmenu=project';
|
||||
else $response->url = DOL_URL_ROOT.'/projet/list.php?mode=mine&search_status=1&mainmenu=project';
|
||||
$response->img = img_object($langs->trans("Projects"),"project");
|
||||
|
||||
// This assignment in condition is not a bug. It allows walking the results.
|
||||
@ -1719,9 +1719,8 @@ class Project extends CommonObject
|
||||
{
|
||||
global $conf;
|
||||
|
||||
if (! ($this->statut == 1)) {
|
||||
return false;
|
||||
}
|
||||
if (! ($this->statut == 1)) return false;
|
||||
if (! $this->datee) return false;
|
||||
|
||||
$now = dol_now();
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/* Copyright (C) 2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2006-2015 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
* Copyright (C) 2006-2016 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
* Copyright (C) 2006-2010 Regis Houssin <regis.houssin@capnetworks.com>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
@ -550,6 +550,7 @@ if ($resql)
|
||||
$projectstatic->title = $obj->projecttitle;
|
||||
$projectstatic->public = $obj->public;
|
||||
$projectstatic->statut = $obj->projectstatus;
|
||||
$projectstatic->datee = $obj->date_end;
|
||||
|
||||
$taskstatic->id = $obj->id;
|
||||
$taskstatic->ref = $obj->ref;
|
||||
@ -568,6 +569,7 @@ if ($resql)
|
||||
{
|
||||
print '<td class="nowrap">';
|
||||
print $projectstatic->getNomUrl(1, 'task');
|
||||
if ($projectstatic->hasDelay()) print img_warning("Late");
|
||||
print '</td>';
|
||||
}
|
||||
// Title
|
||||
|
||||
Loading…
Reference in New Issue
Block a user