Skip to content

Commit

Permalink
Fix: $fileparams is not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
hregis committed Mar 11, 2016
1 parent a9058df commit 7953f77
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions htdocs/commande/card.php
Expand Up @@ -1165,9 +1165,9 @@



if (! $error && ! empty($conf->global->MAIN_DISABLE_CONTACTS_TAB) && $user->rights->commande->creer)
if (! $error && ! empty($conf->global->MAIN_DISABLE_CONTACTS_TAB) && $user->rights->commande->creer)
{
if ($action == 'addcontact')
if ($action == 'addcontact')
{
if ($object->id > 0) {
$contactid = (GETPOST('userid') ? GETPOST('userid') : GETPOST('contactid'));
Expand All @@ -1188,7 +1188,7 @@
}

// bascule du statut d'un contact
else if ($action == 'swapstatut')
else if ($action == 'swapstatut')
{
if ($object->id > 0) {
$result = $object->swapContactStatus(GETPOST('ligne'));
Expand All @@ -1198,7 +1198,7 @@
}

// Efface un contact
else if ($action == 'deletecontact')
else if ($action == 'deletecontact')
{
$result = $object->delete_contact($lineid);

Expand Down Expand Up @@ -1241,7 +1241,7 @@

$projectid = 0;
$remise_absolue = 0;

if (! empty($origin) && ! empty($originid)) {
// Parse element/subelement (ex: project_task)
$element = $subelement = $origin;
Expand All @@ -1252,7 +1252,7 @@

if ($element == 'project') {
$projectid = $originid;

if (!$cond_reglement_id) {
$cond_reglement_id = $soc->cond_reglement_id;
}
Expand Down Expand Up @@ -1444,7 +1444,7 @@
print '</td></tr>';

// TODO How record was recorded OrderMode (llx_c_input_method)

// Project
if (! empty($conf->projet->enabled) && $socid > 0)
{
Expand Down Expand Up @@ -1542,7 +1542,7 @@
default:
$newclassname = $classname;
}

print '<tr><td>' . $langs->trans($newclassname) . '</td><td colspan="2">' . $objectsrc->getNomUrl(1) . '</td></tr>';
print '<tr><td>' . $langs->trans('TotalHT') . '</td><td colspan="2">' . price($objectsrc->total_ht) . '</td></tr>';
print '<tr><td>' . $langs->trans('TotalVAT') . '</td><td colspan="2">' . price($objectsrc->total_tva) . "</td></tr>";
Expand Down Expand Up @@ -2021,7 +2021,7 @@
print '</td></tr>';

// TODO How record was recorded OrderMode (llx_c_input_method)

// Project
if (! empty($conf->projet->enabled))
{
Expand Down Expand Up @@ -2377,6 +2377,7 @@

$ref = dol_sanitizeFileName($object->ref);
include_once DOL_DOCUMENT_ROOT . '/core/lib/files.lib.php';
$fileparams = dol_most_recent_file($conf->commande->dir_output . '/' . $ref, preg_quote($ref, '/').'[^\-]+');
$file = $fileparams['fullname'];

// Define output language
Expand Down

0 comments on commit 7953f77

Please sign in to comment.