|
@@ -43,7 +43,7 @@ discard block |
|
|
block discarded – undo |
|
43
|
43
|
|
|
44
|
44
|
$id = GETPOST('id', 'int') ?: GETPOST('idBBC_vols', 'int'); |
|
45
|
45
|
$action = GETPOST('action', 'alpha'); |
|
46
|
|
-$permissiondellink=$user->rights->flightlog->vol->financial; |
|
|
46
|
+$permissiondellink = $user->rights->flightlog->vol->financial; |
|
47
|
47
|
|
|
48
|
48
|
$object = new Bbcvols($db); |
|
49
|
49
|
$extrafields = new ExtraFields($db); |
|
@@ -62,8 +62,8 @@ discard block |
|
|
block discarded – undo |
|
62
|
62
|
$extralabels = $extrafields->fetch_name_optionals_label($object->table_element); |
|
63
|
63
|
|
|
64
|
64
|
// Load object |
|
65
|
|
-include DOL_DOCUMENT_ROOT . '/core/actions_fetchobject.inc.php'; // Must be include, not include_once // Must be include, not include_once. Include fetch and fetch_thirdparty but not fetch_optionals |
|
66
|
|
-include DOL_DOCUMENT_ROOT.'/core/actions_dellink.inc.php'; |
|
|
65
|
+include DOL_DOCUMENT_ROOT . '/core/actions_fetchobject.inc.php'; // Must be include, not include_once // Must be include, not include_once. Include fetch and fetch_thirdparty but not fetch_optionals |
|
|
66
|
+include DOL_DOCUMENT_ROOT . '/core/actions_dellink.inc.php'; |
|
67
|
67
|
|
|
68
|
68
|
// Initialize technical object to manage hooks of modules. Note that conf->hooks_modules contains array array |
|
69
|
69
|
$hookmanager->initHooks(array('bbcvols')); |
|
@@ -99,7 +99,7 @@ discard block |
|
|
block discarded – undo |
|
99
|
99
|
print '<div class="tabsAction">' . "\n"; |
|
100
|
100
|
print '</div>' . "\n"; |
|
101
|
101
|
|
|
102
|
|
-if($user->rights->flightlog->vol->financial){ |
|
|
102
|
+if ($user->rights->flightlog->vol->financial) { |
|
103
|
103
|
print '<div class="fichecenter"><div class="fichehalfleft">'; |
|
104
|
104
|
$form->showLinkedObjectBlock($object); |
|
105
|
105
|
print '</div></div>'; |