Forgot withregion condition if we want no state code
This commit is contained in:
parent
8c732a1443
commit
3a7cb43ad5
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user