MoChild category

This commit is contained in:
atm-lena 2022-02-22 11:32:33 +01:00
parent ce12442c36
commit 45fe83289f
3 changed files with 4 additions and 3 deletions

View File

@ -8339,7 +8339,7 @@ class Form
* @param array $compatibleImportElementsList Array of compatibles elements object for "import from" action
* @return int <0 if KO, >=0 if OK
*/
public function showLinkedObjectBlock($object, $morehtmlright = '', $compatibleImportElementsList = false)
public function showLinkedObjectBlock($object, $morehtmlright = '', $compatibleImportElementsList = false, $title='RelatedObjects')
{
global $conf, $langs, $hookmanager;
global $bc, $action;
@ -8358,7 +8358,7 @@ class Form
$nbofdifferenttypes = count($object->linkedObjects);
print '<!-- showLinkedObjectBlock -->';
print load_fiche_titre($langs->trans('RelatedObjects'), $morehtmlright, '', 0, 0, 'showlinkedobjectblock');
print load_fiche_titre($langs->trans($title), $morehtmlright, '', 0, 0, 'showlinkedobjectblock');
print '<div class="div-table-responsive-no-min">';

View File

@ -109,3 +109,4 @@ CollapseBOMHelp=You can define the default display of the details of the nomencl
MOAndLines=Manufacturing Orders and lines
MoChildGenerate=Generate Child Mo
ParentMo=MO Parent
MOChild=MO Child

View File

@ -731,7 +731,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
// Show links to link elements
$linktoelem = $form->showLinkToObjectBlock($object, null, array('mo'));
$somethingshown = $form->showLinkedObjectBlock($object, $linktoelem);
$somethingshown = $form->showLinkedObjectBlock($object, $linktoelem, false, 'MOChild');
print '</div><div class="fichehalfright">';