Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/3.9' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Juanjo Menent committed Apr 15, 2016
2 parents e1d35c2 + 8751f6c commit bff1ec2
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions htdocs/core/tpl/objectline_create.tpl.php
Expand Up @@ -32,7 +32,7 @@


$usemargins=0;
if (! empty($conf->margin->enabled) && ! empty($object->element) && in_array($object->element,array('facture','propal','commande')))
if (! empty($conf->margin->enabled) && ! empty($object->element) && in_array($object->element,array('facture','propal','commande')))
{
$usemargins=1;
}
Expand Down Expand Up @@ -196,11 +196,17 @@
{
$parameters=array('fk_parent_line'=>GETPOST('fk_parent_line','int'));
$reshook=$hookmanager->executeHooks('formCreateProductOptions',$parameters,$object,$action);
if (!empty($hookmanager->resPrint)) {
print $hookmanager->resPrint;
}
}
if (is_object($hookmanager) && ! empty($senderissupplier))
{
$parameters=array('htmlname'=>'addproduct');
$reshook=$hookmanager->executeHooks('formCreateProductSupplierOptions',$parameters,$object,$action);
if (!empty($hookmanager->resPrint)) {
print $hookmanager->resPrint;
}
}


Expand Down Expand Up @@ -500,7 +506,7 @@ function checkFreeLine(e, npRate)
$("#select_type").change(function()
{
setforfree();
if (jQuery('#select_type').val() >= 0)
if (jQuery('#select_type').val() >= 0)
{
/* focus work on a standard textarea but not if field was replaced with CKEDITOR */
jQuery('#dp_desc').focus();
Expand Down Expand Up @@ -639,7 +645,7 @@ function checkFreeLine(e, npRate)
?>

/* To set focus */
if (jQuery('#idprod').val() > 0 || jQuery('#idprodfournprice').val() > 0)
if (jQuery('#idprod').val() > 0 || jQuery('#idprodfournprice').val() > 0)
{
/* focus work on a standard textarea but not if field was replaced with CKEDITOR */
jQuery('#dp_desc').focus();
Expand Down

0 comments on commit bff1ec2

Please sign in to comment.