Skip to content

Commit

Permalink
Fix: navigation fails
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Jul 13, 2013
1 parent ada3df4 commit 89d8eb1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion htdocs/fourn/facture/contact.php
Expand Up @@ -51,7 +51,7 @@

if ($action == 'addcontact' && $user->rights->fournisseur->facture->creer)
{
$result = $object->fetch($id);
$result = $object->fetch($id, $ref);

if ($result > 0 && $id > 0)
{
Expand Down
3 changes: 2 additions & 1 deletion htdocs/fourn/facture/document.php
Expand Up @@ -39,6 +39,7 @@
$id = GETPOST('facid','int')?GETPOST('facid','int'):GETPOST('id','int');
$action=GETPOST('action','alpha');
$confirm=GETPOST('confirm','alpha');
$ref = GETPOST('ref','alpha');

// Security check
if ($user->societe_id) $socid=$user->societe_id;
Expand All @@ -58,7 +59,7 @@
if (! $sortfield) $sortfield="name";

$object = new FactureFournisseur($db);
if ($object->fetch($id))
if ($object->fetch($id, $ref))
{
$object->fetch_thirdparty();
$ref=dol_sanitizeFileName($object->ref);
Expand Down
6 changes: 3 additions & 3 deletions htdocs/fourn/facture/note.php
Expand Up @@ -41,7 +41,7 @@
$result = restrictedArea($user, 'fournisseur', $id, 'facture_fourn', 'facture');

$object = new FactureFournisseur($db);
$object->fetch($id,$ref);
$object->fetch($id, $ref);



Expand Down Expand Up @@ -71,13 +71,13 @@

/*
* View
*/
*/

$form = new Form($db);

llxHeader();

if ($id)
if ($object->id > 0)
{
$object->fetch_thirdparty();

Expand Down

0 comments on commit 89d8eb1

Please sign in to comment.