add extra parameters to control combo in form_thirdparty like in select_company
This commit is contained in:
parent
0cdf208f3d
commit
58262034cf
@ -2683,9 +2683,14 @@ class Form
|
|||||||
* @param string $page Page
|
* @param string $page Page
|
||||||
* @param string $selected Id preselected
|
* @param string $selected Id preselected
|
||||||
* @param string $htmlname Name of HTML select
|
* @param string $htmlname Name of HTML select
|
||||||
|
* @param string $filter Optionnal filters criteras
|
||||||
|
* @param int $showempty Add an empty field
|
||||||
|
* @param int $showtype Show third party type in combolist (customer, prospect or supplier)
|
||||||
|
* @param int $forcecombo Force to use combo box
|
||||||
|
* @param array $event Event options
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
function form_thirdparty($page, $selected='', $htmlname='socid')
|
function form_thirdparty($page, $selected='', $htmlname='socid', $filter='',$showempty=0, $showtype=0, $forcecombo=0, $event=array()))
|
||||||
{
|
{
|
||||||
global $langs;
|
global $langs;
|
||||||
|
|
||||||
@ -2696,7 +2701,7 @@ class Form
|
|||||||
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
||||||
print '<table class="nobordernopadding" cellpadding="0" cellspacing="0">';
|
print '<table class="nobordernopadding" cellpadding="0" cellspacing="0">';
|
||||||
print '<tr><td>';
|
print '<tr><td>';
|
||||||
print $this->select_company($selected, $htmlname);
|
print $this->select_company($selected , $htmlname, $filter,$showempty, $showtype, $forcecombo, $event);
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '<td align="left"><input type="submit" class="button" value="'.$langs->trans("Modify").'"></td>';
|
print '<td align="left"><input type="submit" class="button" value="'.$langs->trans("Modify").'"></td>';
|
||||||
print '</tr></table></form>';
|
print '</tr></table></form>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user