diff --git a/htdocs/contact/card.php b/htdocs/contact/card.php
index 229bfc0530b..ee1d10181ca 100644
--- a/htdocs/contact/card.php
+++ b/htdocs/contact/card.php
@@ -624,7 +624,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
*/
$object->canvas = $canvas;
- $object->state_id = GETPOST("state_id");
+ $object->state_id = GETPOST("state_id", "int");
// We set country_id, country_code and label for the selected country
$object->country_id = GETPOST("country_id") ? GETPOST("country_id", "int") : (empty($objsoc->country_id) ? $mysoc->country_id : $objsoc->country_id);
@@ -697,7 +697,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
print '';
} else {
print '
| ';
- print img_picto('', 'company').$form->select_company($socid, 'socid', '', 'SelectThirdParty');
+ print img_picto('', 'company').$form->select_company($socid, 'socid', '', 'SelectThirdParty', 0, 0, null, 0, 'minwidth300 maxwidth500 widthcentpercentminusxx');
print ' |
';
}
}
diff --git a/htdocs/societe/card.php b/htdocs/societe/card.php
index 37ac9805374..a8b2fb151c6 100644
--- a/htdocs/societe/card.php
+++ b/htdocs/societe/card.php
@@ -1671,7 +1671,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
print ''.$langs->trans('ParentCompany').' | ';
print '';
print img_picto('', 'company', 'class="paddingrightonly"');
- print $form->select_company(GETPOST('parent_company_id'), 'parent_company_id');
+ print $form->select_company(GETPOST('parent_company_id'), 'parent_company_id', '', 'SelectThirdParty', 0, 0, null, 0, 'minwidth300 maxwidth500 widthcentpercentminusxx');
print ' | ';
}