From 5baba69970d9ff3ee1981706867fe0208603a185 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 28 Oct 2021 15:05:50 +0200 Subject: [PATCH] Fix regressions --- htdocs/bom/ajax/interface.php | 28 --------------- htdocs/bom/bom_card.php | 44 +++++------------------- htdocs/bom/tpl/objectline_create.tpl.php | 24 ++++++------- htdocs/bom/tpl/objectline_edit.tpl.php | 9 ++--- htdocs/bom/tpl/objectline_title.tpl.php | 16 +++++---- htdocs/bom/tpl/objectline_view.tpl.php | 15 +++----- 6 files changed, 37 insertions(+), 99 deletions(-) delete mode 100644 htdocs/bom/ajax/interface.php diff --git a/htdocs/bom/ajax/interface.php b/htdocs/bom/ajax/interface.php deleted file mode 100644 index 23b208e25ba..00000000000 --- a/htdocs/bom/ajax/interface.php +++ /dev/null @@ -1,28 +0,0 @@ -'. (int) $current_bom_id; - $resql = $db->query($sql); - if ($resql && $db->num_rows($resql) > 0) { - $options = array(); - $cpt=0; - while ($obj = $db->fetch_object($resql)) { - $options[$obj->rowid] = $obj->ref.' - '.$obj->label; - $cpt++; - } - print json_encode($options); - } - - break; -} diff --git a/htdocs/bom/bom_card.php b/htdocs/bom/bom_card.php index 5e86611507b..bd873f0052d 100644 --- a/htdocs/bom/bom_card.php +++ b/htdocs/bom/bom_card.php @@ -242,6 +242,7 @@ if (empty($reshook)) { } } +$conf->global->BOM_SUB_BOM=1; /* * View @@ -573,38 +574,6 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea if (!empty($object->lines) || ($object->status == $object::STATUS_DRAFT && $permissiontoadd && $action != 'selectlines' && $action != 'editline')) { print ''; } - ?> - - '; print "\n"; @@ -612,9 +581,9 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea