mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-05 17:18:13 +01:00
Fix supplier order tags (#33402)
This commit is contained in:
committed by
GitHub
parent
89037af953
commit
1d19cbfe1a
@@ -186,7 +186,7 @@ if ($id > 0 && $removeelem > 0 && $action == 'unlink') { // Test on permission n
|
|||||||
require_once DOL_DOCUMENT_ROOT.'/fourn/class/fournisseur.commande.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/fourn/class/fournisseur.commande.class.php';
|
||||||
$tmpobject = new CommandeFournisseur($db);
|
$tmpobject = new CommandeFournisseur($db);
|
||||||
$result = $tmpobject->fetch($removeelem);
|
$result = $tmpobject->fetch($removeelem);
|
||||||
$elementtype = 'invoice';
|
$elementtype = 'supplier_order';
|
||||||
} else {
|
} else {
|
||||||
dol_print_error(null, "Not supported value of type = ".$type);
|
dol_print_error(null, "Not supported value of type = ".$type);
|
||||||
}
|
}
|
||||||
@@ -265,7 +265,7 @@ if ($elemid && $action == 'addintocategory') { // Test on permission not require
|
|||||||
} elseif ($type == Categorie::TYPE_SUPPLIER_ORDER && $user->hasRight('fournisseur', 'commande', 'creer')) {
|
} elseif ($type == Categorie::TYPE_SUPPLIER_ORDER && $user->hasRight('fournisseur', 'commande', 'creer')) {
|
||||||
require_once DOL_DOCUMENT_ROOT.'/fourn/class/fournisseur.commande.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/fourn/class/fournisseur.commande.class.php';
|
||||||
$newobject = new CommandeFournisseur($db);
|
$newobject = new CommandeFournisseur($db);
|
||||||
$elementtype = 'order_supplier';
|
$elementtype = 'supplier_order';
|
||||||
} else {
|
} else {
|
||||||
dol_print_error(null, "Not supported value of type = ".$type);
|
dol_print_error(null, "Not supported value of type = ".$type);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user