Merge branch '13.0' of git@github.com:Dolibarr/dolibarr.git into 13.0
This commit is contained in:
commit
84af7a1247
@ -1022,11 +1022,10 @@ class FormCompany extends Form
|
|||||||
public function formThirdpartyType($page, $selected = '', $htmlname = 'socid', $filter = '', $nooutput = 0)
|
public function formThirdpartyType($page, $selected = '', $htmlname = 'socid', $filter = '', $nooutput = 0)
|
||||||
{
|
{
|
||||||
// phpcs:enable
|
// phpcs:enable
|
||||||
global $langs;
|
global $conf, $langs;
|
||||||
|
|
||||||
$out = '';
|
$out = '';
|
||||||
if ($htmlname != "none")
|
if ($htmlname != "none") {
|
||||||
{
|
|
||||||
$out .= '<form method="post" action="'.$page.'">';
|
$out .= '<form method="post" action="'.$page.'">';
|
||||||
$out .= '<input type="hidden" name="action" value="set_thirdpartytype">';
|
$out .= '<input type="hidden" name="action" value="set_thirdpartytype">';
|
||||||
$out .= '<input type="hidden" name="token" value="'.newToken().'">';
|
$out .= '<input type="hidden" name="token" value="'.newToken().'">';
|
||||||
@ -1035,8 +1034,7 @@ class FormCompany extends Form
|
|||||||
$out .= '<input type="submit" class="button smallpaddingimp valignmiddle" value="'.$langs->trans("Modify").'">';
|
$out .= '<input type="submit" class="button smallpaddingimp valignmiddle" value="'.$langs->trans("Modify").'">';
|
||||||
$out .= '</form>';
|
$out .= '</form>';
|
||||||
} else {
|
} else {
|
||||||
if ($selected)
|
if ($selected) {
|
||||||
{
|
|
||||||
$arr = $this->typent_array(0);
|
$arr = $this->typent_array(0);
|
||||||
$typent = $arr[$selected];
|
$typent = $arr[$selected];
|
||||||
$out .= $typent;
|
$out .= $typent;
|
||||||
@ -1045,7 +1043,10 @@ class FormCompany extends Form
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($nooutput) return $out;
|
if ($nooutput) {
|
||||||
else print $out;
|
return $out;
|
||||||
|
} else {
|
||||||
|
print $out;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user