MoChild category
This commit is contained in:
parent
ce12442c36
commit
45fe83289f
@ -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">';
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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">';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user