Forgot withregion condition if we want no state code
This commit is contained in:
parent
8c732a1443
commit
3a7cb43ad5
@ -517,10 +517,15 @@ function getState($id,$withcode='',$dbtouse=0,$withregion='',$outputlangs='',$en
|
|||||||
return array('id'=>$obj->id,'code'=>$obj->code,'label'=>$label);
|
return array('id'=>$obj->id,'code'=>$obj->code,'label'=>$label);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
if ($withregion == 1) {
|
||||||
|
return $label = $obj->region_name . ' - ' . $label;
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
return $label;
|
return $label;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return $langs->transnoentitiesnoconv("NotDefined");
|
return $langs->transnoentitiesnoconv("NotDefined");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user