Skip to content

Commit

Permalink
Forgot withregion condition if we want no state code
Browse files Browse the repository at this point in the history
  • Loading branch information
ruistrecht-alt committed Feb 7, 2018
1 parent 8c732a1 commit 3a7cb43
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion htdocs/core/lib/company.lib.php
Expand Up @@ -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
Expand Down

0 comments on commit 3a7cb43

Please sign in to comment.