Merge pull request #22043 from dolibit-ut/patch-511
Update bom_card.php
This commit is contained in:
commit
5336cfee35
@ -17,9 +17,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \file htdocs/bom/bom_card.php
|
* \file htdocs/bom/bom_card.php
|
||||||
* \ingroup bom
|
* \ingroup bom
|
||||||
* \brief Page to create/edit/view bom
|
* \brief Page to create/edit/view BOM
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Load Dolibarr environment
|
// Load Dolibarr environment
|
||||||
@ -32,7 +32,7 @@ require_once DOL_DOCUMENT_ROOT.'/mrp/lib/mrp.lib.php';
|
|||||||
|
|
||||||
|
|
||||||
// Load translation files required by the page
|
// Load translation files required by the page
|
||||||
$langs->loadLangs(array("mrp", "other"));
|
$langs->loadLangs(array('mrp', 'other'));
|
||||||
|
|
||||||
// Get parameters
|
// Get parameters
|
||||||
$id = GETPOST('id', 'int');
|
$id = GETPOST('id', 'int');
|
||||||
@ -373,7 +373,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
|
|||||||
// Confirmation of closing
|
// Confirmation of closing
|
||||||
if ($action == 'close') {
|
if ($action == 'close') {
|
||||||
$text = $langs->trans('ConfirmCloseBom', $object->ref);
|
$text = $langs->trans('ConfirmCloseBom', $object->ref);
|
||||||
/*if (!empty($conf->notification->enabled))
|
/*if (! empty($conf->notification->enabled))
|
||||||
{
|
{
|
||||||
require_once DOL_DOCUMENT_ROOT . '/core/class/notify.class.php';
|
require_once DOL_DOCUMENT_ROOT . '/core/class/notify.class.php';
|
||||||
$notify = new Notify($db);
|
$notify = new Notify($db);
|
||||||
@ -401,7 +401,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
|
|||||||
// Confirmation of reopen
|
// Confirmation of reopen
|
||||||
if ($action == 'reopen') {
|
if ($action == 'reopen') {
|
||||||
$text = $langs->trans('ConfirmReopenBom', $object->ref);
|
$text = $langs->trans('ConfirmReopenBom', $object->ref);
|
||||||
/*if (!empty($conf->notification->enabled))
|
/*if (! empty($conf->notification->enabled))
|
||||||
{
|
{
|
||||||
require_once DOL_DOCUMENT_ROOT . '/core/class/notify.class.php';
|
require_once DOL_DOCUMENT_ROOT . '/core/class/notify.class.php';
|
||||||
$notify = new Notify($db);
|
$notify = new Notify($db);
|
||||||
@ -487,7 +487,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
|
|||||||
$morehtmlref.=$form->form_project($_SERVER['PHP_SELF'] . '?id=' . $object->id, $object->socid, $object->fk_project, 'none', 0, 0, 0, 1);
|
$morehtmlref.=$form->form_project($_SERVER['PHP_SELF'] . '?id=' . $object->id, $object->socid, $object->fk_project, 'none', 0, 0, 0, 1);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (!empty($object->fk_project)) {
|
if (! empty($object->fk_project)) {
|
||||||
$proj = new Project($db);
|
$proj = new Project($db);
|
||||||
$proj->fetch($object->fk_project);
|
$proj->fetch($object->fk_project);
|
||||||
$morehtmlref.=$proj->getNomUrl();
|
$morehtmlref.=$proj->getNomUrl();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user