Fix: Corrige bug affiche selecteur date si en mode non calendrier
This commit is contained in:
parent
83908de2e5
commit
300ff9f9e7
@ -619,6 +619,11 @@ if ($_GET["id"])
|
|||||||
|
|
||||||
print '<td>'.$langs->trans("Contact").'</td><td width="30%">';
|
print '<td>'.$langs->trans("Contact").'</td><td width="30%">';
|
||||||
$html->select_array("contactid", $act->societe->contact_array(), $act->contact->id, 1);
|
$html->select_array("contactid", $act->societe->contact_array(), $act->contact->id, 1);
|
||||||
|
print '</td></tr>';
|
||||||
|
|
||||||
|
// Priorite
|
||||||
|
print '<tr><td nowrap>'.$langs->trans("Priority").'</td><td colspan="3">';
|
||||||
|
print $langs->trans("FeatureNotYetSupported");
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
// Affecte a
|
// Affecte a
|
||||||
@ -702,6 +707,11 @@ if ($_GET["id"])
|
|||||||
print $langs->trans("None");
|
print $langs->trans("None");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
print '</td></tr>';
|
||||||
|
|
||||||
|
// Priorite
|
||||||
|
print '<tr><td nowrap>'.$langs->trans("Priority").'</td><td colspan="3">';
|
||||||
|
print $langs->trans("FeatureNotYetSupported");
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
// Affecte a
|
// Affecte a
|
||||||
|
|||||||
@ -2093,18 +2093,21 @@ class Form
|
|||||||
*/
|
*/
|
||||||
if (! $conf->use_javascript || ! $conf->use_popup_calendar)
|
if (! $conf->use_javascript || ! $conf->use_popup_calendar)
|
||||||
{
|
{
|
||||||
|
/*
|
||||||
// Jour
|
if ($set_time == -1)
|
||||||
print '<select class="flat" name="'.$prefix.'day">';
|
|
||||||
|
|
||||||
if ($empty || $set_time == -1)
|
|
||||||
{
|
{
|
||||||
$sday = 0;
|
$sday = 0;
|
||||||
$smonth = 0;
|
$smonth = 0;
|
||||||
$syear = 0;
|
$syear = 0;
|
||||||
$shour = 0;
|
$shour = 0;
|
||||||
$smin = 0;
|
$smin = 0;
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
// Jour
|
||||||
|
print '<select class="flat" name="'.$prefix.'day">';
|
||||||
|
|
||||||
|
if ($empty || $set_time == -1)
|
||||||
|
{
|
||||||
print '<option value="0" selected="true"> </option>';
|
print '<option value="0" selected="true"> </option>';
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2141,7 +2144,7 @@ class Form
|
|||||||
// Année
|
// Année
|
||||||
if ($empty || $set_time == -1)
|
if ($empty || $set_time == -1)
|
||||||
{
|
{
|
||||||
print '<input class="flat" type="text" size="3" maxlength="4" name="'.$prefix.'year">';
|
print '<input class="flat" type="text" size="3" maxlength="4" name="'.$prefix.'year" value="'.$syear.'">';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user