Fix: works on repair broken features
This commit is contained in:
parent
b93304fd18
commit
227ef6364f
@ -24,7 +24,7 @@
|
|||||||
* \file htdocs/commande/class/commande.class.php
|
* \file htdocs/commande/class/commande.class.php
|
||||||
* \ingroup commande
|
* \ingroup commande
|
||||||
* \brief Fichier des classes de commandes
|
* \brief Fichier des classes de commandes
|
||||||
* \version $Id: commande.class.php,v 1.123 2011/08/10 22:47:33 eldy Exp $
|
* \version $Id: commande.class.php,v 1.124 2011/08/11 07:41:41 hregis Exp $
|
||||||
*/
|
*/
|
||||||
require_once(DOL_DOCUMENT_ROOT."/core/class/commonobject.class.php");
|
require_once(DOL_DOCUMENT_ROOT."/core/class/commonobject.class.php");
|
||||||
require_once(DOL_DOCUMENT_ROOT."/product/class/product.class.php");
|
require_once(DOL_DOCUMENT_ROOT."/product/class/product.class.php");
|
||||||
@ -917,6 +917,7 @@ class Commande extends CommonObject
|
|||||||
// Hook of thirdparty module
|
// Hook of thirdparty module
|
||||||
if (is_object($hookmanager))
|
if (is_object($hookmanager))
|
||||||
{
|
{
|
||||||
|
$parameters=array('objFrom'=>$object);
|
||||||
$reshook=$hookmanager->executeHooks('createfrom',$parameters,$this,$action); // Note that $action and $object may have been modified by some hooks
|
$reshook=$hookmanager->executeHooks('createfrom',$parameters,$this,$action); // Note that $action and $object may have been modified by some hooks
|
||||||
if ($reshook < 0) $error++;
|
if ($reshook < 0) $error++;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -21,7 +21,7 @@
|
|||||||
* \file htdocs/core/class/html.formfile.class.php
|
* \file htdocs/core/class/html.formfile.class.php
|
||||||
* \ingroup core
|
* \ingroup core
|
||||||
* \brief File of class to offer components to list and upload files
|
* \brief File of class to offer components to list and upload files
|
||||||
* \version $Id: html.formfile.class.php,v 1.54 2011/08/10 22:47:34 eldy Exp $
|
* \version $Id: html.formfile.class.php,v 1.55 2011/08/11 07:41:41 hregis Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
@ -451,7 +451,7 @@ class FormFile
|
|||||||
$out.= '</tr>';
|
$out.= '</tr>';
|
||||||
|
|
||||||
// Execute hooks
|
// Execute hooks
|
||||||
$parameters=array('socid'=>$GLOBALS['socid'],'id'=>$GLOBAL['id']);
|
$parameters=array('socid'=>$GLOBALS['socid'],'id'=>$GLOBALS['id']);
|
||||||
if (is_object($hookmanager)) $out.= $hookmanager->executeHooks('formBuilddocOptions',$parameters);
|
if (is_object($hookmanager)) $out.= $hookmanager->executeHooks('formBuilddocOptions',$parameters);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -15,7 +15,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*
|
*
|
||||||
* $Id: predefinedproductline_create.tpl.php,v 1.16 2011/08/10 22:47:33 eldy Exp $
|
* $Id: predefinedproductline_create.tpl.php,v 1.17 2011/08/11 07:41:41 hregis Exp $
|
||||||
*
|
*
|
||||||
* Need to have following variables defined:
|
* Need to have following variables defined:
|
||||||
* $conf
|
* $conf
|
||||||
@ -61,7 +61,7 @@
|
|||||||
|
|
||||||
if (is_object($hookmanager))
|
if (is_object($hookmanager))
|
||||||
{
|
{
|
||||||
$parameters=array();
|
$parameters=array('fk_parent_line'=>$_POST["fk_parent_line"]);
|
||||||
$hookmanager->executeHooks('formCreateProductOptions',$parameters,$object,$action);
|
$hookmanager->executeHooks('formCreateProductOptions',$parameters,$object,$action);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -15,7 +15,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*
|
*
|
||||||
* $Id: predefinedproductline_edit.tpl.php,v 1.18 2011/08/11 01:36:53 eldy Exp $
|
* $Id: predefinedproductline_edit.tpl.php,v 1.19 2011/08/11 07:41:41 hregis Exp $
|
||||||
*
|
*
|
||||||
* Need to have following variables defined:
|
* Need to have following variables defined:
|
||||||
* $conf
|
* $conf
|
||||||
@ -49,8 +49,10 @@
|
|||||||
|
|
||||||
if (is_object($hookmanager))
|
if (is_object($hookmanager))
|
||||||
{
|
{
|
||||||
$parameters=array('fk_parent_line'=>$line_fk_parent_line);
|
$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,$object,$action);
|
$hookmanager->executeHooks('formEditProductOptions',$parameters,$object,$action);
|
||||||
|
}
|
||||||
|
|
||||||
// editeur wysiwyg
|
// editeur wysiwyg
|
||||||
$nbrows=ROWS_2;
|
$nbrows=ROWS_2;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user