Browse Source

Fix Form::load_cache_vatrates() countries dict (#28528)

thomas-Ngr 1 year ago
parent
commit
a0fc77cd76
1 changed files with 1 additions and 1 deletions
  1. 1 1
      htdocs/core/class/html.form.class.php

+ 1 - 1
htdocs/core/class/html.form.class.php

@@ -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>';