Skip to content

Commit

Permalink
Merge branch '7.0' of git@github.com:Dolibarr/dolibarr.git into 8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Mar 21, 2019
2 parents a1fe1bb + f7f20df commit 1075ef8
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion htdocs/product/stock/replenish.php
@@ -1,6 +1,6 @@
<?php
/* Copyright (C) 2013 Cédric Salvador <csalvador@gpcsolutions.fr>
* Copyright (C) 2013-2016 Laurent Destaileur <ely@users.sourceforge.net>
* Copyright (C) 2013-2018 Laurent Destaileur <ely@users.sourceforge.net>
* Copyright (C) 2014 Regis Houssin <regis.houssin@capnetworks.com>
* Copyright (C) 2016 Juanjo Menent <jmenent@2byte.es>
* Copyright (C) 2016 ATM Consulting <support@atm-consulting.fr>
Expand Down Expand Up @@ -42,6 +42,9 @@
}
$result=restrictedArea($user,'produit|service');

// Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context
$hookmanager->initHooks(array('stockreplenishlist'));

//checks if a product has been ordered

$action = GETPOST('action','alpha');
Expand Down Expand Up @@ -86,6 +89,9 @@
$usevirtualstock=0;
if ($mode == 'virtual') $usevirtualstock=1;

$parameters=array();
$reshook=$hookmanager->executeHooks('doActions',$parameters,$object,$action); // Note that $action and $object may have been modified by some hooks
if ($reshook < 0) setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');

/*
* Actions
Expand Down Expand Up @@ -678,6 +684,11 @@
}
$i++;
}

$parameters=array('sql'=>$sql);
$reshook=$hookmanager->executeHooks('printFieldListFooter',$parameters); // Note that $action and $object may have been modified by hook
print $hookmanager->resPrint;

print '</table>';
print '</div>';

Expand Down

0 comments on commit 1075ef8

Please sign in to comment.