Rewrite code to prepare refactoring

This commit is contained in:
Laurent Destailleur 2024-10-26 15:24:54 +02:00
parent b95c6d4558
commit f5e4ab0220
45 changed files with 190 additions and 63 deletions

View File

@ -2096,16 +2096,9 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
$somethingshown = $formfile->numoffiles;
// Show links to link elements
//$linktoelem = $form->showLinkToObjectBlock($object, null, array('subscription'));
//$tmparray = $form->showLinkToObjectBlock($object, null, array('subscription'), 1);
//$somethingshown = $form->showLinkedObjectBlock($object, '');
// Show links to link elements
/*$linktoelem = $form->showLinkToObjectBlock($object,array('order'));
if ($linktoelem) {
print ($somethingshown?'':'<br>').$linktoelem;
}
*/
// Show online payment link
// The list can be complete by the hook 'doValidatePayment' executed inside getValidOnlinePaymentMethods()
include_once DOL_DOCUMENT_ROOT.'/core/lib/payments.lib.php';

View File

@ -395,13 +395,9 @@ if ($rowid && $action != 'edit') {
$somethingshown = $formfile->numoffiles;
*/
// Show links to link elements
//$linktoelem = $form->showLinkToObjectBlock($object, null, array('subscription'));
//$tmparray = $form->showLinkToObjectBlock($object, null, array('subscription'), 1);
$somethingshown = $form->showLinkedObjectBlock($object, '');
// Show links to link elements
/*$linktoelem = $form->showLinkToObjectBlock($object,array('order'));
if ($linktoelem) print ($somethingshown?'':'<br>').$linktoelem;
*/
print '</div><div class="fichehalfright">';

View File

@ -407,7 +407,11 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
}
// Show links to link elements
$linktoelem = $form->showLinkToObjectBlock($object, null, array('asset'));
$tmparray = $form->showLinkToObjectBlock($object, array(), array('asset'), 1);
$linktoelem = $tmparray['linktoelem'];
$htmltoenteralink = $tmparray['htmltoenteralink'];
print $htmltoenteralink;
$somethingshown = $form->showLinkedObjectBlock($object, $linktoelem);

View File

@ -806,7 +806,11 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
print $formfile->showdocuments('bom', $objref, $filedir, $urlsource, $genallowed, $delallowed, $object->model_pdf, 1, 0, 0, 28, 0, '', '', '', $langs->defaultlang);
// Show links to link elements
$linktoelem = $form->showLinkToObjectBlock($object, null, array('bom'));
$tmparray = $form->showLinkToObjectBlock($object, array(), array('bom'), 1);
$linktoelem = $tmparray['linktoelem'];
$htmltoenteralink = $tmparray['htmltoenteralink'];
print $htmltoenteralink;
$somethingshown = $form->showLinkedObjectBlock($object, $linktoelem);

View File

@ -589,7 +589,11 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
}
// Show links to link elements
$linktoelem = $form->showLinkToObjectBlock($object, null, array('availabilities'));
$tmparray = $form->showLinkToObjectBlock($object, array(), array('availabilities'), 1);
$linktoelem = $tmparray['linktoelem'];
$htmltoenteralink = $tmparray['htmltoenteralink'];
print $htmltoenteralink;
$somethingshown = $form->showLinkedObjectBlock($object, $linktoelem);

View File

@ -531,7 +531,11 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
}
// Show links to link elements
$linktoelem = $form->showLinkToObjectBlock($object, null, array('calendar'));
$tmparray = $form->showLinkToObjectBlock($object, array(), array('calendar'), 1);
$linktoelem = $tmparray['linktoelem'];
$htmltoenteralink = $tmparray['htmltoenteralink'];
print $htmltoenteralink;
$somethingshown = $form->showLinkedObjectBlock($object, $linktoelem);

View File

@ -3240,7 +3240,10 @@ if ($action == 'create') {
print $formfile->showdocuments('propal', $objref, $filedir, $urlsource, $genallowed, $delallowed, $object->model_pdf, 1, 0, 0, 28, 0, '', 0, '', $soc->default_lang, '', $object);
// Show links to link elements
$linktoelem = $form->showLinkToObjectBlock($object, array(), array('propal'));
$tmparray = $form->showLinkToObjectBlock($object, array(), array('propal'), 1);
$linktoelem = $tmparray['linktoelem'];
$htmltoenteralink = $tmparray['htmltoenteralink'];
print $htmltoenteralink;
$compatibleImportElementsList = false;
if ($user->hasRight('propal', 'creer') && $object->statut == Propal::STATUS_DRAFT) {

View File

@ -3161,7 +3161,10 @@ if ($action == 'create' && $usercancreate) {
// Show links to link elements
$linktoelem = $form->showLinkToObjectBlock($object, array(), array('order'));
$tmparray = $form->showLinkToObjectBlock($object, array(), array('order'), 1);
$linktoelem = $tmparray['linktoelem'];
$htmltoenteralink = $tmparray['htmltoenteralink'];
print $htmltoenteralink;
$compatibleImportElementsList = false;
if ($usercancreate

View File

@ -1704,7 +1704,10 @@ if ($action == 'create') {
// Show links to link elements
$linktoelem = $form->showLinkToObjectBlock($object, null, array('invoice'));
$tmparray = $form->showLinkToObjectBlock($object, array(), array('invoice'), 1);
$linktoelem = $tmparray['linktoelem'];
$htmltoenteralink = $tmparray['htmltoenteralink'];
print $htmltoenteralink;
$somethingshown = $form->showLinkedObjectBlock($object, $linktoelem);

View File

@ -6098,7 +6098,10 @@ if ($action == 'create') {
$somethingshown = $formfile->numoffiles;
// Show links to link elements
$linktoelem = $form->showLinkToObjectBlock($object, array(), array('invoice'));
$tmparray = $form->showLinkToObjectBlock($object, array(), array('invoice'), 1);
$linktoelem = $tmparray['linktoelem'];
$htmltoenteralink = $tmparray['htmltoenteralink'];
print $htmltoenteralink;
$compatibleImportElementsList = false;
if ($usercancreate

View File

@ -861,7 +861,7 @@ if ($id > 0) {
}
// Show links to link elements
//$linktoelem = $form->showLinkToObjectBlock($object, null, array('myobject'));
//$tmparray = $form->showLinkToObjectBlock($object, null, array('myobject'), 1);
//$somethingshown = $form->showLinkedObjectBlock($object, $linktoelem);

View File

@ -849,7 +849,7 @@ if ($id > 0) {
}
// Show links to link elements
//$linktoelem = $form->showLinkToObjectBlock($object, null, array('myobject'));
//$tmparray = $form->showLinkToObjectBlock($object, null, array('myobject'), 1);
//$somethingshown = $form->showLinkedObjectBlock($object, $linktoelem);

View File

@ -2344,7 +2344,11 @@ if ($action == 'create') {
// Show links to link elements
$linktoelem = $form->showLinkToObjectBlock($object, array(), array('contrat'));
$tmparray = $form->showLinkToObjectBlock($object, array(), array('contrat'), 1);
$linktoelem = $tmparray['linktoelem'];
$htmltoenteralink = $tmparray['htmltoenteralink'];
print $htmltoenteralink;
$somethingshown = $form->showLinkedObjectBlock($object, $linktoelem);
// Show online signature link

View File

@ -9686,12 +9686,12 @@ class Form
$htmltoenteralink .= '<br>'."\n";
$htmltoenteralink .= '<!-- form to add a link from anywhere -->'."\n";
$htmltoenteralink .= '<form action="' . $_SERVER["PHP_SELF"] . '" method="POST" name="formlinkedbyref' . $key . '">';
$htmltoenteralink .= '<input type="hidden" name="id" value="' . $object->id . '">';
$htmltoenteralink .= '<input type="hidden" name="action" value="addlinkbyref">';
$htmltoenteralink .= '<input type="hidden" name="token" value="' . newToken() . '">';
$htmltoenteralink .= '<input type="hidden" name="action" value="addlinkbyref">';
$htmltoenteralink .= '<input type="hidden" name="id" value="' . $object->id . '">';
$htmltoenteralink .= '<input type="hidden" name="addlink" value="' . $key . '">';
$htmltoenteralink .= '<table class="noborder">';
$htmltoenteralink .= '<tr>';
$htmltoenteralink .= '<tr class="liste_titre">';
//print '<td>' . $langs->trans("Ref") . '</td>';
$htmltoenteralink .= '<td class="center"><input type="text" placeholder="'.dol_escape_htmltag($langs->trans("Ref")).'" name="reftolinkto" value="' . dol_escape_htmltag(GETPOST('reftolinkto', 'alpha')) . '">&nbsp;';
$htmltoenteralink .= '<input type="submit" class="button small valignmiddle" value="' . $langs->trans('ToLink') . '">&nbsp;';
@ -9710,11 +9710,13 @@ class Form
if ($num > 0) {
// Section for free predefined list
$htmltoenteralink .= '<br>';
if (getDolGlobalString('MAIN_HIDE_LINK_BY_REF_IN_LINKTO')) {
$htmltoenteralink .= '<br>';
}
$htmltoenteralink .= '<!-- form to add a link from object to same thirdparty -->'."\n";
$htmltoenteralink .= '<form action="' . $_SERVER["PHP_SELF"] . '" method="POST" name="formlinked' . $key . '">';
$htmltoenteralink .= '<input type="hidden" name="action" value="addlink">';
$htmltoenteralink .= '<input type="hidden" name="token" value="' . newToken() . '">';
$htmltoenteralink .= '<input type="hidden" name="action" value="addlink">';
$htmltoenteralink .= '<input type="hidden" name="id" value="' . $object->id . '">';
$htmltoenteralink .= '<input type="hidden" name="addlink" value="' . $key . '">';
$htmltoenteralink .= '<table class="noborder">';

View File

@ -689,7 +689,7 @@ if ($action == 'create') {
$shipment->fetch($object->origin_id);
// Show links to link elements
//$linktoelem = $form->showLinkToObjectBlock($object, null, array('order'));
//$tmparray = $form->showLinkToObjectBlock($object, null, array('order'), 1);
$somethingshown = $form->showLinkedObjectBlock($object, '');
}

View File

@ -955,7 +955,11 @@ if (!empty($id) && $action != 'edit') {
print $formfile->showdocuments('donation', $filename, $filedir, $urlsource, $genallowed, $delallowed, $object->model_pdf);
// Show links to link elements
$linktoelem = $form->showLinkToObjectBlock($object, null, array('don'));
$tmparray = $form->showLinkToObjectBlock($object, array(), array('don'), 1);
$linktoelem = $tmparray['linktoelem'];
$htmltoenteralink = $tmparray['htmltoenteralink'];
print $htmltoenteralink;
$somethingshown = $form->showLinkedObjectBlock($object, $linktoelem);
// Show online payment link

View File

@ -642,7 +642,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
}
// Show links to link elements
//$linktoelem = $form->showLinkToObjectBlock($object, null, array('conferenceorbooth'));
//$tmparray = $form->showLinkToObjectBlock($object, null, array('conferenceorbooth'), 1);
//$somethingshown = $form->showLinkedObjectBlock($object, $linktoelem);
$object->fetchObjectLinked();

View File

@ -646,7 +646,11 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
}
// Show links to link elements
$linktoelem = $form->showLinkToObjectBlock($object, null, array('conferenceorboothattendee'));
$tmparray = $form->showLinkToObjectBlock($object, array(), array('conferenceorboothattendee'), 1);
$linktoelem = $tmparray['linktoelem'];
$htmltoenteralink = $tmparray['htmltoenteralink'];
print $htmltoenteralink;
$somethingshown = $form->showLinkedObjectBlock($object, $linktoelem);

View File

@ -2802,7 +2802,11 @@ if ($action == 'create') {
// Show links to link elements
$linktoelem = $form->showLinkToObjectBlock($object, null, array('shipping'));
$tmparray = $form->showLinkToObjectBlock($object, array(), array('shipping'), 1);
$linktoelem = $tmparray['linktoelem'];
$htmltoenteralink = $tmparray['htmltoenteralink'];
print $htmltoenteralink;
$somethingshown = $form->showLinkedObjectBlock($object, $linktoelem);
// Show online signature link

View File

@ -2918,7 +2918,11 @@ if ($action != 'presend') {
/*
if ($action != 'create' && $action != 'edit' && ($id || $ref))
{
$linktoelem = $form->showLinkToObjectBlock($object, null, array('expensereport'));
$tmparray = $form->showLinkToObjectBlock($object, array(), array('expensereport'), 1);
$linktoelem = $tmparray['linktoelem'];
$htmltoenteralink = $tmparray['htmltoenteralink'];
print $htmltoenteralink;
$somethingshown = $form->showLinkedObjectBlock($object, $linktoelem);
}
*/

View File

@ -1862,7 +1862,11 @@ if ($action == 'create') {
print $formfile->showdocuments('ficheinter', $filename, $filedir, $urlsource, $genallowed, $delallowed, $object->model_pdf, 1, 0, 0, 28, 0, '', '', '', $soc->default_lang);
// Show links to link elements
$linktoelem = $form->showLinkToObjectBlock($object, array(), array('fichinter'));
$tmparray = $form->showLinkToObjectBlock($object, array(), array('fichinter'), 1);
$linktoelem = $tmparray['linktoelem'];
$htmltoenteralink = $tmparray['htmltoenteralink'];
print $htmltoenteralink;
$somethingshown = $form->showLinkedObjectBlock($object, $linktoelem);
// Show direct download link

View File

@ -2677,7 +2677,11 @@ if ($action == 'create') {
$somethingshown = $formfile->numoffiles;
// Show links to link elements
$linktoelem = $form->showLinkToObjectBlock($object, array(), array('supplier_order', 'order_supplier'));
$tmparray = $form->showLinkToObjectBlock($object, array(), array('supplier_order', 'order_supplier'), 1);
$linktoelem = $tmparray['linktoelem'];
$htmltoenteralink = $tmparray['htmltoenteralink'];
print $htmltoenteralink;
$somethingshown = $form->showLinkedObjectBlock($object, $linktoelem);
print '</div><div class="fichehalfright">';

View File

@ -1591,7 +1591,10 @@ if ($action == 'create') {
print '<a name="builddoc"></a>'; // ancre
// Show links to link elements
$linktoelem = $form->showLinkToObjectBlock($object, null, array('invoice'));
$tmparray = $form->showLinkToObjectBlock($object, array(), array('invoice'), 1);
$linktoelem = $tmparray['linktoelem'];
$htmltoenteralink = $tmparray['htmltoenteralink'];
print $htmltoenteralink;
$somethingshown = $form->showLinkedObjectBlock($object, $linktoelem);

View File

@ -4165,7 +4165,11 @@ if ($action == 'create') {
$somethingshown = $formfile->numoffiles;
// Show links to link elements
$linktoelem = $form->showLinkToObjectBlock($object, array(), array('invoice_supplier'));
$tmparray = $form->showLinkToObjectBlock($object, array(), array('invoice_supplier'), 1);
$linktoelem = $tmparray['linktoelem'];
$htmltoenteralink = $tmparray['htmltoenteralink'];
print $htmltoenteralink;
$somethingshown = $form->showLinkedObjectBlock($object, $linktoelem);
print '</div><div class="fichehalfright">';

View File

@ -1654,7 +1654,7 @@ if ((empty($id) && empty($ref)) || $action == 'create' || $action == 'add') {
}
// Show links to link elements
//$linktoelem = $form->showLinkToObjectBlock($object, null, array('myobject'));
//$tmparray = $form->showLinkToObjectBlock($object, null, array('myobject'), 1);
//$somethingshown = $form->showLinkedObjectBlock($object, $linktoelem);

View File

@ -699,7 +699,11 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
}
// Show links to link elements
$linktoelem = $form->showLinkToObjectBlock($object, null, array('evaluation'));
$tmparray = $form->showLinkToObjectBlock($object, array(), array('evaluation'), 1);
$linktoelem = $tmparray['linktoelem'];
$htmltoenteralink = $tmparray['htmltoenteralink'];
print $htmltoenteralink;
$somethingshown = $form->showLinkedObjectBlock($object, $linktoelem);

View File

@ -511,9 +511,12 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
}
// Show links to link elements
$linktoelem = $form->showLinkToObjectBlock($object, null, array('job'));
$somethingshown = $form->showLinkedObjectBlock($object, $linktoelem);
$tmparray = $form->showLinkToObjectBlock($object, array(), array('job'), 1);
$linktoelem = $tmparray['linktoelem'];
$htmltoenteralink = $tmparray['htmltoenteralink'];
print $htmltoenteralink;
$somethingshown = $form->showLinkedObjectBlock($object, $linktoelem);
print '</div><div class="fichehalfright">';

View File

@ -384,9 +384,12 @@ if ($action !== 'edit' && $action !== 'create') {
print '<div class="fichecenter"><div class="fichehalfleft">';
// Show links to link elements
$linktoelem = $form->showLinkToObjectBlock($object, null, array('position'));
$somethingshown = $form->showLinkedObjectBlock($object, $linktoelem);
$tmparray = $form->showLinkToObjectBlock($object, array(), array('position'), 1);
$linktoelem = $tmparray['linktoelem'];
$htmltoenteralink = $tmparray['htmltoenteralink'];
print $htmltoenteralink;
$somethingshown = $form->showLinkedObjectBlock($object, $linktoelem);
print '</div><div class="fichehalfright">';

View File

@ -890,7 +890,11 @@ if ($action != "create" && $action != "edit") {
print '<div class="fichecenter"><div class="fichehalfleft">';
// Show links to link elements
$linktoelem = $form->showLinkToObjectBlock($object, null, array('skill'));
$tmparray = $form->showLinkToObjectBlock($object, array(), array('skill'), 1);
$linktoelem = $tmparray['linktoelem'];
$htmltoenteralink = $tmparray['htmltoenteralink'];
print $htmltoenteralink;
$somethingshown = $form->showLinkedObjectBlock($object, $linktoelem);
print '</div><div class="fichehalfright">';

View File

@ -568,9 +568,12 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
}
// Show links to link elements
$linktoelem = $form->showLinkToObjectBlock($object, array(), array('intracommreport'));
$somethingshown = $form->showLinkedObjectBlock($object, $linktoelem);
$tmparray = $form->showLinkToObjectBlock($object, array(), array('intracommreport'), 1);
$linktoelem = $tmparray['linktoelem'];
$htmltoenteralink = $tmparray['htmltoenteralink'];
print $htmltoenteralink;
$somethingshown = $form->showLinkedObjectBlock($object, $linktoelem);
print '</div><div class="fichehalfright">';

View File

@ -545,7 +545,11 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
}
// Show links to link elements
$linktoelem = $form->showLinkToObjectBlock($object, null, array('knowledgerecord'));
$tmparray = $form->showLinkToObjectBlock($object, array(), array('knowledgerecord'), 1);
$linktoelem = $tmparray['linktoelem'];
$htmltoenteralink = $tmparray['htmltoenteralink'];
print $htmltoenteralink;
$somethingshown = $form->showLinkedObjectBlock($object, $linktoelem);

View File

@ -618,7 +618,11 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
}
// Show links to link elements
$linktoelem = $form->showLinkToObjectBlock($object, array(), array('myobject'));
$tmparray = $form->showLinkToObjectBlock($object, array(), array('myobject'), 1);
$linktoelem = $tmparray['linktoelem'];
$htmltoenteralink = $tmparray['htmltoenteralink'];
print $htmltoenteralink;
$somethingshown = $form->showLinkedObjectBlock($object, $linktoelem);

View File

@ -858,7 +858,11 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
print $formfile->showdocuments('mrp:mo', $objref, $filedir, $urlsource, $genallowed, $delallowed, $object->model_pdf, 1, 0, 0, 28, 0, '', '', '', $mysoc->default_lang);
// Show links to link elements
$linktoelem = $form->showLinkToObjectBlock($object, null, array('mo'));
$tmparray = $form->showLinkToObjectBlock($object, array(), array('mo'), 1);
$linktoelem = $tmparray['linktoelem'];
$htmltoenteralink = $tmparray['htmltoenteralink'];
print $htmltoenteralink;
$somethingshown = $form->showLinkedObjectBlock($object, $linktoelem, false);

View File

@ -654,7 +654,11 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
}
// Show links to link elements
$linktoelem = $form->showLinkToObjectBlock($object, null, array('partnership'));
$tmparray = $form->showLinkToObjectBlock($object, array(), array('partnership'), 1);
$linktoelem = $tmparray['linktoelem'];
$htmltoenteralink = $tmparray['htmltoenteralink'];
print $htmltoenteralink;
$somethingshown = $form->showLinkedObjectBlock($object, $linktoelem);

View File

@ -473,7 +473,11 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
}
// Show links to link elements
$linktoelem = $form->showLinkToObjectBlock($object, null, array('inventory'));
$tmparray = $form->showLinkToObjectBlock($object, array(), array('inventory'), 1);
$linktoelem = $tmparray['linktoelem'];
$htmltoenteralink = $tmparray['htmltoenteralink'];
print $htmltoenteralink;
$somethingshown = $form->showLinkedObjectBlock($object, $linktoelem);

View File

@ -1112,7 +1112,11 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
}
// Show links to link elements
$linktoelem = $form->showLinkToObjectBlock($object, null, array('stocktransfer'));
$tmparray = $form->showLinkToObjectBlock($object, array(), array('stocktransfer'), 1);
$linktoelem = $tmparray['linktoelem'];
$htmltoenteralink = $tmparray['htmltoenteralink'];
print $htmltoenteralink;
$somethingshown = $form->showLinkedObjectBlock($object, $linktoelem);

View File

@ -760,7 +760,10 @@ if ($id > 0 || !empty($ref)) {
print $formfile->showdocuments('project_task', $filename, $filedir, $urlsource, $genallowed, $delallowed, $object->model_pdf);
// Show links to link elements
$linktoelem = $form->showLinkToObjectBlock($object, null, array('project_task'));
$tmparray = $form->showLinkToObjectBlock($object, array(), array('project_task'), 1);
$linktoelem = $tmparray['linktoelem'];
$htmltoenteralink = $tmparray['htmltoenteralink'];
print $htmltoenteralink;
$compatibleImportElementsList = false;
$somethingshown = $form->showLinkedObjectBlock($object, $linktoelem, $compatibleImportElementsList);

View File

@ -2243,7 +2243,7 @@ if ($action == 'create') {
print $formfile->showdocuments('reception', $objectref, $filedir, $urlsource, $genallowed, $delallowed, $object->model_pdf, 1, 0, 0, 28, 0, '', '', '', $soc->default_lang);
// Show links to link elements
//$linktoelem = $form->showLinkToObjectBlock($object, null, array('order'));
//$tmparray = $form->showLinkToObjectBlock($object, null, array('order'), 1);
$somethingshown = $form->showLinkedObjectBlock($object, '');
print '</div><div class="fichehalfright">';

View File

@ -636,7 +636,11 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
}
// Show links to link elements
$linktoelem = $form->showLinkToObjectBlock($object, null, array('recruitmentcandidature'));
$tmparray = $form->showLinkToObjectBlock($object, array(), array('recruitmentcanidature'), 1);
$linktoelem = $tmparray['linktoelem'];
$htmltoenteralink = $tmparray['htmltoenteralink'];
print $htmltoenteralink;
$somethingshown = $form->showLinkedObjectBlock($object, $linktoelem);

View File

@ -481,7 +481,11 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
}
// Show links to link elements
$linktoelem = $form->showLinkToObjectBlock($object, null, array('recruitmentjobposition'));
$tmparray = $form->showLinkToObjectBlock($object, array(), array('recruitmentjobposition'), 1);
$linktoelem = $tmparray['linktoelem'];
$htmltoenteralink = $tmparray['htmltoenteralink'];
print $htmltoenteralink;
$somethingshown = $form->showLinkedObjectBlock($object, $linktoelem);
// Show link to public job page

View File

@ -1180,7 +1180,11 @@ if ($id > 0) {
// Show links to link elements
/*
$linktoelem = $form->showLinkToObjectBlock($object, null, array('salaries'));
$tmparray = $form->showLinkToObjectBlock($object, array(), array('salaries'), 1);
$linktoelem = $tmparray['linktoelem'];
$htmltoenteralink = $tmparray['htmltoenteralink'];
print $htmltoenteralink;
$somethingshown = $form->showLinkedObjectBlock($object, $linktoelem);
*/

View File

@ -2043,8 +2043,13 @@ if ($action == 'create') {
// Show links to link elements
$linktoelem = $form->showLinkToObjectBlock($object, array(), array('supplier_proposal'));
$tmparray = $form->showLinkToObjectBlock($object, array(), array('supplier_proposal'), 1);
$linktoelem = $tmparray['linktoelem'];
$htmltoenteralink = $tmparray['htmltoenteralink'];
print $htmltoenteralink;
$somethingshown = $form->showLinkedObjectBlock($object, $linktoelem);
$MAXEVENT = 10;
print '</div><div class="fichehalfright">';

View File

@ -1636,7 +1636,11 @@ if ($action == 'create' || $action == 'presend') {
print $formfile->showdocuments('ticket', $filename, $filedir, $urlsource, $genallowed, $delallowed, $object->model_pdf, 1, 0, 0, 28, 0, '', 0, '', $codelang);
// Show links to link elements
$linktoelem = $form->showLinkToObjectBlock($object, null, array('ticket'));
$tmparray = $form->showLinkToObjectBlock($object, array(), array('ticket'), 1);
$linktoelem = $tmparray['linktoelem'];
$htmltoenteralink = $tmparray['htmltoenteralink'];
print $htmltoenteralink;
$somethingshown = $form->showLinkedObjectBlock($object, $linktoelem);
// Show direct link to public interface

View File

@ -2978,7 +2978,11 @@ if ($action == 'create' || $action == 'adduserldap') {
$somethingshown = $formfile->numoffiles;
// Show links to link elements
$linktoelem = $form->showLinkToObjectBlock($object, array(), array());
$tmparray = $form->showLinkToObjectBlock($object, array(), array(), 1);
$linktoelem = $tmparray['linktoelem'];
$htmltoenteralink = $tmparray['htmltoenteralink'];
print $htmltoenteralink;
$somethingshown = $form->showLinkedObjectBlock($object, $linktoelem);
$MAXEVENT = 10;

View File

@ -480,7 +480,11 @@ if ($action == 'create') {
$somethingshown = $formfile->showdocuments('usergroup', $filename, $filedir, $urlsource, $genallowed, $delallowed, $object->model_pdf, 1, 0, 0, 28, 0, '', 0, '', $mysoc->default_lang);
// Show links to link elements
$linktoelem = $form->showLinkToObjectBlock($object, null, null);
$tmparray = $form->showLinkToObjectBlock($object, array(), array(), 1);
$linktoelem = $tmparray['linktoelem'];
$htmltoenteralink = $tmparray['htmltoenteralink'];
print $htmltoenteralink;
$somethingshown = $form->showLinkedObjectBlock($object, $linktoelem);
print '</div><div class="fichehalfright">';