|
@@ -2,7 +2,7 @@
|
|
|
/* Copyright (C) 2003-2006 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
|
|
* Copyright (C) 2005-2012 Laurent Destailleur <eldy@users.sourceforge.net>
|
|
|
* Copyright (C) 2005-2012 Regis Houssin <regis.houssin@capnetworks.com>
|
|
|
- * Copyright (C) 2012 Juanjo Menent <jmenent@2byte.es>
|
|
|
+ * Copyright (C) 2012-2015 Juanjo Menent <jmenent@2byte.es>
|
|
|
*
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
@@ -329,7 +329,7 @@ if ($id > 0 || ! empty($ref))
|
|
|
print $langs->trans('AvailabilityPeriod');
|
|
|
print '</td>';
|
|
|
if ($action != 'editavailability')
|
|
|
- print '<td align="right"><a href="' . $_SERVER["PHP_SELF"] . '?action=editavailability&id=' . $object->id . '">' . img_edit($langs->trans('SetAvailability'), 1) . '</a></td>';
|
|
|
+ print '<td align="right"><a href="' . $_SERVER["PHP_SELF"] . '?action=editavailability&id=' . $commande->id . '">' . img_edit($langs->trans('SetAvailability'), 1) . '</a></td>';
|
|
|
print '</tr></table>';
|
|
|
print '</td><td colspan="3">';
|
|
|
if ($action == 'editavailability') {
|
|
@@ -345,7 +345,7 @@ if ($id > 0 || ! empty($ref))
|
|
|
print $langs->trans('Source');
|
|
|
print '</td>';
|
|
|
if ($action != 'editdemandreason')
|
|
|
- print '<td align="right"><a href="' . $_SERVER["PHP_SELF"] . '?action=editdemandreason&id=' . $object->id . '">' . img_edit($langs->trans('SetDemandReason'), 1) . '</a></td>';
|
|
|
+ print '<td align="right"><a href="' . $_SERVER["PHP_SELF"] . '?action=editdemandreason&id=' . $commande->id . '">' . img_edit($langs->trans('SetDemandReason'), 1) . '</a></td>';
|
|
|
print '</tr></table>';
|
|
|
print '</td><td colspan="3">';
|
|
|
if ($action == 'editdemandreason') {
|