From 2674d2e8a25317d30f1865e30704d156cd3863a4 Mon Sep 17 00:00:00 2001 From: Quatadah Nasdami Date: Wed, 27 Jul 2022 00:33:37 +0200 Subject: [PATCH] remove unused changes --- htdocs/core/lib/functions.lib.php | 17 ++++++----------- htdocs/projet/card.php | 30 ++++++++++++------------------ 2 files changed, 18 insertions(+), 29 deletions(-) diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index 3df96d4e057..8a837d5934c 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -10357,8 +10357,7 @@ function dolGetStatus($statusLabel = '', $statusLabelShort = '', $html = '', $st * 'action-btn-label' => '', // Overide label of action button, if empty default label use "Confirm" lang key * 'cancel-btn-label' => '', // Overide label of cancel button, if empty default label use "CloseDialog" lang key * 'content' => '', // Overide text of content, if empty default content use "ConfirmBtnCommonContent" lang key - * 'modal' => true, // true|false to display dialog as a modal (with dark background) - * 'isDropDrown' => false, // true|false to display dialog as a dropdown (with dark background) + * 'modal' => true, // true|false to display dialog as a modal (with dark background) * ], * ] * // phpcs:enable @@ -10368,16 +10367,12 @@ function dolGetButtonAction($label, $html = '', $actionType = 'default', $url = { global $hookmanager, $action, $object, $langs; - //var_dump($params); - if ($params['isDropdown']) - $class = "dropdown-item"; - else { - $class = 'butAction'; - if ($actionType == 'danger' || $actionType == 'delete') { - $class = 'butActionDelete'; - if (!empty($url) && strpos($url, 'token=') === false) $url .= '&token='.newToken(); - } + $class = 'butAction'; + if ($actionType == 'danger' || $actionType == 'delete') { + $class = 'butActionDelete'; + if (!empty($url) && strpos($url, 'token=') === false) $url .= '&token='.newToken(); } + $attr = array( 'class' => $class, 'href' => empty($url) ? '' : $url, diff --git a/htdocs/projet/card.php b/htdocs/projet/card.php index 7353323b60d..62a950237d5 100644 --- a/htdocs/projet/card.php +++ b/htdocs/projet/card.php @@ -1316,56 +1316,50 @@ if ($action == 'create' && $user->rights->projet->creer) { } } - + // Add button to create objects from projects if (!empty($conf->global->PROJECT_SHOW_CREATE_OBJECT_BUTTON)) { - print'"; } + // Clone if ($user->rights->projet->creer) { if ($userWrite > 0) {