diff --git a/htdocs/fourn/class/fournisseur.commande.class.php b/htdocs/fourn/class/fournisseur.commande.class.php
index df4a189b885..4b795862e9b 100644
--- a/htdocs/fourn/class/fournisseur.commande.class.php
+++ b/htdocs/fourn/class/fournisseur.commande.class.php
@@ -324,9 +324,12 @@ class CommandeFournisseur extends CommonOrder
$result=$this->fetch_lines();
if ($result < 0)
{
- return -3;
+ return -1;
+ }
+ else
+ {
+ return 1;
}
-
}
else
{
diff --git a/htdocs/product/fournisseurs.php b/htdocs/product/fournisseurs.php
index ebb7f9753dc..21439a1ac8a 100644
--- a/htdocs/product/fournisseurs.php
+++ b/htdocs/product/fournisseurs.php
@@ -852,7 +852,7 @@ SCRIPT;
{
print ''.img_edit()."";
print ' ';
- print ''.img_picto($langs->trans("Remove"),'disable.png').'';
+ print ''.img_picto($langs->trans("Remove"),'delete').'';
}
print '';
diff --git a/test/phpunit/CommandeFournisseurTest.php b/test/phpunit/CommandeFournisseurTest.php
index 2d615e0bd06..33271a07dcc 100644
--- a/test/phpunit/CommandeFournisseurTest.php
+++ b/test/phpunit/CommandeFournisseurTest.php
@@ -179,7 +179,7 @@ class CommandeFournisseurTest extends PHPUnit_Framework_TestCase
$result=$localobject2->create($user);
print __METHOD__." result=".$result."\n";
- $this->assertGreaterThanOrEqual(0, $result);
+ $this->assertGreaterThan(0, $result);
return $result;
}
@@ -206,7 +206,7 @@ class CommandeFournisseurTest extends PHPUnit_Framework_TestCase
$result=$localobject->fetch($id);
print __METHOD__." id=".$id." result=".$result."\n";
- $this->assertLessThan($result, 0);
+ $this->assertLessThan($result, 0, 'Failed to fetch supplier order with id '.$id);
return $localobject;
}