diff --git a/htdocs/comm/action/fiche.php b/htdocs/comm/action/fiche.php
index cec21712ec0..c0b3cc73e20 100644
--- a/htdocs/comm/action/fiche.php
+++ b/htdocs/comm/action/fiche.php
@@ -509,11 +509,11 @@ if ($_GET["action"] == 'create')
print '
| '.$langs->trans("DateActionPlanned").' | ';
if ($_GET["afaire"] == 1 || $_GET["afaire"] == 2)
{
- $html->select_date(-1,'ap',1,1,1,"action");
+ $html->select_date('','ap',1,1,0,"action");
}
else
{
- $html->select_date(-1,'ap',1,1,1,"action");
+ $html->select_date('','ap',1,1,0,"action");
}
print ' |
';
@@ -523,7 +523,7 @@ if ($_GET["action"] == 'create')
{
$html->select_date(-1,'ad',1,1,1,"action");
}
- else
+ elseif ($_GET["afaire"] != 1)
{
$html->select_date(-1,'ad',1,1,1,"action");
}
diff --git a/htdocs/comm/prospect/fiche.php b/htdocs/comm/prospect/fiche.php
index 141ea3cc192..c380c915626 100644
--- a/htdocs/comm/prospect/fiche.php
+++ b/htdocs/comm/prospect/fiche.php
@@ -221,9 +221,9 @@ if ($socid > 0)
print '';
- print '
'.$langs->trans("AddContact").'';
+ print '
'.$langs->trans("AddContact").'';
- print '
'.$langs->trans("AddAction").'';
+ print '
'.$langs->trans("AddAction").'';
if ($conf->propal->enabled && defined("MAIN_MODULE_PROPALE") && MAIN_MODULE_PROPALE && $user->rights->propale->creer)
@@ -326,7 +326,7 @@ if ($socid > 0)
*
*/
print '
';
- print '| '.$langs->trans("ActionsToDo").' | |
';
+ print '| '.$langs->trans("ActionsToDo").' | |
';
$sql = "SELECT a.id, a.label, ".$db->pdate("a.datep")." as dp, c.code as acode, c.libelle, u.code, a.propalrowid, a.fk_user_author, fk_contact, u.rowid ";
$sql .= " FROM ".MAIN_DB_PREFIX."actioncomm as a, ".MAIN_DB_PREFIX."c_actioncomm as c, ".MAIN_DB_PREFIX."user as u ";
@@ -393,7 +393,7 @@ if ($socid > 0)
}
else
{
- print ''.img_object($langs->trans("ShowAction"),"task");
+ print ' | '.img_object($langs->trans("ShowAction"),"task");
$transcode=$langs->trans("Action".$obj->acode);
$libelle=($transcode!="Action".$obj->acode?$transcode:$obj->libelle);
print $libelle;
@@ -425,7 +425,7 @@ if ($socid > 0)
* Listes des actions effectuées
*/
print '';
- print '| '.$langs->trans("ActionsDone").' | ';
+ print '| '.$langs->trans("ActionsDone").' | ';
$sql = "SELECT a.id, ".$db->pdate("a.datea")." as da, c.code as acode, c.libelle, a.propalrowid, a.fk_user_author, fk_contact, u.code, u.rowid ";
$sql .= " FROM ".MAIN_DB_PREFIX."actioncomm as a, ".MAIN_DB_PREFIX."c_actioncomm as c, ".MAIN_DB_PREFIX."user as u ";
|