Skip to content

Commit

Permalink
FIX Filter on date lost after submit on time spent page
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Mar 16, 2017
1 parent deb91ad commit 68e50d0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion htdocs/commande/card.php
Expand Up @@ -60,6 +60,7 @@
$langs->load('deliveries');
$langs->load('sendings');
$langs->load('products');
$langs->load('other');
if (!empty($conf->incoterm->enabled)) $langs->load('incoterm');
if (! empty($conf->margin->enabled)) $langs->load('margins');
if (! empty($conf->productbatch->enabled)) $langs->load("productbatch");
Expand Down Expand Up @@ -2079,7 +2080,7 @@
print '<input type="submit" class="button" value="' . $langs->trans('Modify') . '">';
print '</form>';
} else {
print $object->date ? dol_print_date($object->date, 'daytext') : '&nbsp;';
print $object->date ? dol_print_date($object->date, 'day') : '&nbsp;';
if ($object->hasDelay() && empty($object->date_livraison)) {
print ' '.img_picto($langs->trans("Late").' : '.$object->showDelay(), "warning");
}
Expand Down
2 changes: 2 additions & 0 deletions htdocs/commande/info.php
Expand Up @@ -53,6 +53,8 @@
* View
*/

$form = new Form($db);

llxHeader('',$langs->trans('Order'),'EN:Customers_Orders|FR:Commandes_Clients|ES:Pedidos de clientes');

$object->fetch_thirdparty();
Expand Down
2 changes: 1 addition & 1 deletion htdocs/projet/activity/perweek.php
Expand Up @@ -262,7 +262,7 @@
setEventMessages($langs->trans("RecordSaved"), null, 'mesgs');

// Redirect to avoid submit twice on back
header('Location: '.$_SERVER["PHP_SELF"].($projectid?'?id='.$projectid:'?').($mode?'&mode='.$mode:''));
header('Location: '.$_SERVER["PHP_SELF"].($projectid?'?id='.$projectid:'?').($mode?'&mode='.$mode:'').($day?'&day='.$day:'').($month?'&month='.$month:'').($year?'&year='.$year:''));
exit;
}
}
Expand Down

0 comments on commit 68e50d0

Please sign in to comment.