From 5b075a6250746c72ac7113b30a7940c9b8aea43b Mon Sep 17 00:00:00 2001 From: Nicolas Domenech Date: Wed, 25 Sep 2024 00:48:11 +0200 Subject: [PATCH] #268 [Mod] fix: minor change --- core/modules/modDoliCar.class.php | 5 +++-- .../registrationcertificatefr_card.php | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/core/modules/modDoliCar.class.php b/core/modules/modDoliCar.class.php index a6e3107..bd7ee56 100644 --- a/core/modules/modDoliCar.class.php +++ b/core/modules/modDoliCar.class.php @@ -129,7 +129,8 @@ public function __construct($db) 'get_sheet_linkable_objects', 'propallist', 'orderlist', - 'invoicelist' + 'invoicelist', + 'main' ] ], // Set this to 1 if features of module are opened to external users @@ -468,7 +469,7 @@ public function init($options = ''): int $extraFieldsArrays = [ 'registrationcertificatefr' => ['Label' => 'RegistrationCertificateFr', 'type' => 'link', 'length' => '', 'elementtype' => ['propal', 'commande', 'facture'], 'position' => 10, 'params' => 'a:1:{s:7:"options";a:1:{s:75:"RegistrationCertificateFr:dolicar/class/registrationcertificatefr.class.php";N;}}', 'alwayseditable' => 1, 'list' => 1, 'help' => '', 'entity' => 0, 'langfile' => 'dolicar@dolicar', 'enabled' => "isModEnabled('dolicar')"], 'vehicle_model' => ['Label' => 'VehicleModel', 'type' => 'varchar', 'length' => 255, 'elementtype' => ['propal', 'commande', 'facture'], 'position' => 20, 'params' => '', 'list' => 5, 'help' => '', 'entity' => 0, 'langfile' => 'dolicar@dolicar', 'enabled' => "isModEnabled('dolicar')"], - 'mileage' => ['Label' => 'Mileage', 'type' => 'int', 'length' => '', 'elementtype' => ['propal', 'commande', 'facture'], 'position' => 30, 'params' => '', 'alwayseditable' => 1, 'list' => 4, 'help' => '', 'entity' => 0, 'langfile' => 'dolicar@dolicar', 'enabled' => "isModEnabled('dolicar')"], + 'mileage' => ['Label' => 'Mileage', 'type' => 'int', 'length' => '', 'elementtype' => ['propal', 'commande', 'facture'], 'position' => 30, 'params' => '', 'alwayseditable' => 1, 'list' => 1, 'help' => '', 'entity' => 0, 'langfile' => 'dolicar@dolicar', 'enabled' => "isModEnabled('dolicar')"], 'registration_number' => ['Label' => 'RegistrationNumber', 'type' => 'varchar', 'length' => 255, 'elementtype' => ['propal', 'commande', 'facture'], 'position' => 40, 'params' => '', 'list' => 5, 'help' => '', 'entity' => 0, 'langfile' => 'dolicar@dolicar', 'enabled' => "isModEnabled('dolicar')"], 'linked_product' => ['Label' => 'LinkedProduct', 'type' => 'link', 'length' => '', 'elementtype' => ['propal', 'commande', 'facture'], 'position' => 50, 'params' => 'a:1:{s:7:"options";a:1:{s:93:"Product:product/class/product.class.php:0:(t.entity:=:__ENTITY__) AND (t.fk_product_type:=:0)";N;}}', 'list' => 5, 'help' => '', 'entity' => 0, 'langfile' => 'dolicar@dolicar', 'enabled' => "isModEnabled('dolicar')"], 'linked_lot' => ['Label' => 'LinkedProductBatch', 'type' => 'link', 'length' => '', 'elementtype' => ['propal', 'commande', 'facture'], 'position' => 60, 'params' => 'a:1:{s:7:"options";a:1:{s:75:"ProductLot:product/stock/class/productlot.class.php:(t.entity = __ENTITY__)";N;}}', 'list' => 5, 'help' => '', 'entity' => 0, 'langfile' => 'dolicar@dolicar', 'enabled' => "isModEnabled('dolicar')"], diff --git a/view/registrationcertificatefr/registrationcertificatefr_card.php b/view/registrationcertificatefr/registrationcertificatefr_card.php index 7c33266..f74a92f 100644 --- a/view/registrationcertificatefr/registrationcertificatefr_card.php +++ b/view/registrationcertificatefr/registrationcertificatefr_card.php @@ -188,7 +188,7 @@ print ''; $_POST['fk_product'] = getDolGlobalInt('DOLICAR_DEFAULT_VEHICLE'); - $object->fields['d1_vehicle_brand']['default'] = get_vehicle_brand(GETPOST('fk_product')); + $object->fields['d1_vehicle_brand']['default'] = get_vehicle_brand(GETPOSTINT('fk_product')); // Fk_lot print'
';