Skip to content

Commit

Permalink
FIX #29449 Products not allowed on contracts (#31909)
Browse files Browse the repository at this point in the history
* FIX #31269 Bad use of GETPOSTINT

* FIX #29449 Products not allowed on contracts

* Update card.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
  • Loading branch information
mbinformatique68 and eldy authored Nov 16, 2024
1 parent 4d51d72 commit aff3a20
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion htdocs/contrat/card.php
Original file line number Diff line number Diff line change
Expand Up @@ -1821,7 +1821,12 @@
} else {
$senderissupplier = 0; // @TODO Option to allow purchased products ?
if (empty($senderissupplier)) {
print $form->select_produits($currentLineProductId, 'idprod', '', 0, 0, 1, 2, '', 0, array(), 0, 1, 0, 'minwidth250onall maxwidth500 widthcentpercentminusx');
if (getDolGlobalString('CONTRACT_SUPPORT_PRODUCTS')) {
$filtertype = '';
} else {
$filtertype = '1';
}
print $form->select_produits($currentLineProductId, 'idprod', $filtertype, 0, 0, 1, 2, '', 0, array(), 0, 1, 0, 'minwidth250onall maxwidth500 widthcentpercentminusx');
} else {
$form->select_produits_fournisseurs($currentLineProductId, 'idprod');
}
Expand Down

0 comments on commit aff3a20

Please sign in to comment.