Forgot withregion condition if we want no state code

This commit is contained in:
Rui Strecht 2018-02-07 16:06:58 +00:00
parent 8c732a1443
commit 3a7cb43ad5

View File

@ -518,7 +518,12 @@ function getState($id,$withcode='',$dbtouse=0,$withregion='',$outputlangs='',$en
}
}
else {
return $label;
if ($withregion == 1) {
return $label = $obj->region_name . ' - ' . $label;
}
else {
return $label;
}
}
}
else