Fix: more simple
This commit is contained in:
parent
646778a497
commit
a5f7bf3903
@ -897,6 +897,8 @@ class Form
|
||||
function select_produits($selected='',$htmlname='productid',$filtertype='',$limit=20,$price_level=0,$status=1,$finished=2,$selected_input_value='',$hidelabel=0)
|
||||
{
|
||||
global $langs,$conf;
|
||||
|
||||
$price_level = (! empty($price_level) ? $price_level : 0);
|
||||
|
||||
if ($conf->global->PRODUIT_USE_SEARCH_TO_SELECT)
|
||||
{
|
||||
@ -911,12 +913,13 @@ class Form
|
||||
print ajax_autocompleter($selected, $htmlname, DOL_URL_ROOT.'/product/ajaxproducts.php', 'htmlname='.$htmlname.'&outjson=1&price_level='.$price_level.'&type='.$filtertype.'&mode=1&status='.$status.'&finished='.$finished, $conf->global->PRODUIT_USE_SEARCH_TO_SELECT);
|
||||
if (! $hidelabel) print $langs->trans("RefOrLabel").' : ';
|
||||
print '<input type="text" size="20" name="search_'.$htmlname.'" id="search_'.$htmlname.'" value="'.$selected_input_value.'" />';
|
||||
print '<br>';
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->select_produits_do($selected,$htmlname,$filtertype,$limit,$price_level,'',$status,$finished,0);
|
||||
}
|
||||
|
||||
print '<br />';
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -49,7 +49,7 @@
|
||||
if (is_object($hookmanager))
|
||||
{
|
||||
$parameters=array();
|
||||
$hookmanager->executeHooks('formCreateProductOptions',$parameters,$object,$action);
|
||||
echo $hookmanager->executeHooks('formCreateProductOptions',$parameters,$object,$action);
|
||||
}
|
||||
|
||||
// Editor wysiwyg
|
||||
|
||||
@ -41,7 +41,7 @@
|
||||
if (is_object($hookmanager))
|
||||
{
|
||||
$parameters=array('fk_parent_line'=>$line->fk_parent_line);
|
||||
$hookmanager->executeHooks('formEditProductOptions',$parameters,$this,$action);
|
||||
echo $hookmanager->executeHooks('formEditProductOptions',$parameters,$this,$action);
|
||||
}
|
||||
|
||||
// editeur wysiwyg
|
||||
|
||||
@ -50,18 +50,13 @@
|
||||
<tr <?php echo $bcnd[$var]; ?>>
|
||||
<td colspan="3">
|
||||
<?php
|
||||
// multiprix
|
||||
if($conf->global->PRODUIT_MULTIPRICES)
|
||||
$html->select_produits('','idprod','',$conf->product->limit_size,$buyer->price_level);
|
||||
else
|
||||
$html->select_produits('','idprod','',$conf->product->limit_size);
|
||||
|
||||
if (! $conf->global->PRODUIT_USE_SEARCH_TO_SELECT) echo '<br>';
|
||||
$html->select_produits('','idprod','',$conf->product->limit_size,$buyer->price_level);
|
||||
|
||||
if (is_object($hookmanager))
|
||||
{
|
||||
$parameters=array('fk_parent_line'=>$_POST["fk_parent_line"]);
|
||||
$hookmanager->executeHooks('formCreateProductOptions',$parameters,$object,$action);
|
||||
echo $hookmanager->executeHooks('formCreateProductOptions',$parameters,$object,$action);
|
||||
}
|
||||
|
||||
// Editor wysiwyg
|
||||
|
||||
@ -51,7 +51,7 @@
|
||||
{
|
||||
$fk_parent_line = ($_POST["fk_parent_line"] ? $_POST["fk_parent_line"] : $line->fk_parent_line);
|
||||
$parameters=array('fk_parent_line'=>$fk_parent_line);
|
||||
$hookmanager->executeHooks('formEditProductOptions',$parameters,$this,$action);
|
||||
echo $hookmanager->executeHooks('formEditProductOptions',$parameters,$this,$action);
|
||||
}
|
||||
|
||||
// editeur wysiwyg
|
||||
|
||||
Loading…
Reference in New Issue
Block a user