No more need fo this constant. Use the generic default feature instead

This commit is contained in:
Laurent Destailleur 2020-03-02 23:28:01 +01:00
parent 46bf65704a
commit 481ea6296e

View File

@ -249,8 +249,7 @@ class FormCompany extends Form
}
}
if ((!empty($selected) && $selected == $obj->rowid)
|| (empty($selected) && !empty($conf->global->MAIN_FORCE_DEFAULT_STATE_ID) && $conf->global->MAIN_FORCE_DEFAULT_STATE_ID == $obj->rowid))
if (!empty($selected) && $selected == $obj->rowid)
{
$out .= '<option value="'.$obj->rowid.'" selected>';
}