mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Merge pull request #26113 from defrance/patch-277
php warning and field not used
This commit is contained in:
commit
5b0483bf13
|
|
@ -129,7 +129,7 @@ if ($object->id) {
|
|||
if (isModEnabled('project')) {
|
||||
$langs->load("projects");
|
||||
$morehtmlref .= '<br>';
|
||||
if ($usercancreate && 0) {
|
||||
if ($permissiontoadd && 0) {
|
||||
$morehtmlref .= img_picto($langs->trans("Project"), 'project', 'class="pictofixedwidth"');
|
||||
if ($action != 'classify') {
|
||||
$morehtmlref .= '<a class="editfielda" href="'.$_SERVER['PHP_SELF'].'?action=classify&token='.newToken().'&id='.$object->id.'">'.img_edit($langs->transnoentitiesnoconv('SetProject')).'</a> ';
|
||||
|
|
@ -164,7 +164,6 @@ if ($object->id) {
|
|||
print dol_get_fiche_end();
|
||||
|
||||
$modulepart = 'ficheinter';
|
||||
$permissiontoadd = $user->rights->ficheinter->creer;
|
||||
$permtoedit = $user->rights->ficheinter->creer;
|
||||
$param = '&id='.$object->id;
|
||||
include DOL_DOCUMENT_ROOT.'/core/tpl/document_actions_post_headers.tpl.php';
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@ if ($id > 0 || !empty($ref)) {
|
|||
if (isModEnabled('project')) {
|
||||
$langs->load("projects");
|
||||
$morehtmlref .= '<br>';
|
||||
if ($usercancreate && 0) {
|
||||
if ($permissionnote && 0) {
|
||||
$morehtmlref .= img_picto($langs->trans("Project"), 'project', 'class="pictofixedwidth"');
|
||||
if ($action != 'classify') {
|
||||
$morehtmlref .= '<a class="editfielda" href="'.$_SERVER['PHP_SELF'].'?action=classify&token='.newToken().'&id='.$object->id.'">'.img_edit($langs->transnoentitiesnoconv('SetProject')).'</a> ';
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user