|
@@ -6348,7 +6348,7 @@ class Form
|
|
|
if (!empty($user) && $user->admin && preg_match('/\'(..)\'/', $country_code, $reg)) {
|
|
|
$langs->load("errors");
|
|
|
$new_country_code = $reg[1];
|
|
|
- $country_id = dol_getIdFromCode($this->db, $new_country_code, 'c_pays', 'code', 'rowid');
|
|
|
+ $country_id = dol_getIdFromCode($this->db, $new_country_code, 'c_country', 'code', 'rowid');
|
|
|
$this->error .= '<br>'.$langs->trans("ErrorFixThisHere", DOL_URL_ROOT.'/admin/dict.php?id=10'.($country_id > 0 ? '&countryidforinsert='.$country_id : ''));
|
|
|
}
|
|
|
$this->error .= '</span>';
|