';
if ($user->rights->agenda->myactions->create || $user->rights->agenda->allactions->create)
{
- $newparam .= '&month='.str_pad($month, 2, "0", STR_PAD_LEFT).'&year='.$year;
-
- //$param='month='.$monthshown.'&year='.$year;
- $hourminsec = '100000';
- print '
';
+ print ''; // Explicit link, usefull for nojs interfaces
print img_picto($langs->trans("NewAction"), 'edit_add.png');
print '';
}
@@ -1838,7 +1840,9 @@ function show_day_events($db, $day, $month, $year, $monthshown, $style, &$eventa
break;
}
}
- if (!$i) print ' ';
+ if (!$i) { // No events
+ print ' ';
+ }
if (!empty($conf->global->MAIN_JS_SWITCH_AGENDA) && $i > $maxprint && $maxprint)
{
diff --git a/htdocs/comm/propal/class/api_proposals.class.php b/htdocs/comm/propal/class/api_proposals.class.php
index f2275d59021..61831e1e1b4 100644
--- a/htdocs/comm/propal/class/api_proposals.class.php
+++ b/htdocs/comm/propal/class/api_proposals.class.php
@@ -846,8 +846,8 @@ class Proposals extends DolibarrApi
/**
* Clean sensible object datas
*
- * @param object $object Object to clean
- * @return array Array of cleaned object properties
+ * @param Object $object Object to clean
+ * @return Object Object with cleaned properties
*/
protected function _cleanObjectDatas($object)
{
diff --git a/htdocs/commande/class/api_orders.class.php b/htdocs/commande/class/api_orders.class.php
index b9fbe8a6c1d..25796c057ed 100644
--- a/htdocs/commande/class/api_orders.class.php
+++ b/htdocs/commande/class/api_orders.class.php
@@ -950,8 +950,8 @@ class Orders extends DolibarrApi
/**
* Clean sensible object datas
*
- * @param object $object Object to clean
- * @return array Array of cleaned object properties
+ * @param Object $object Object to clean
+ * @return Object Object with cleaned properties
*/
protected function _cleanObjectDatas($object)
{
diff --git a/htdocs/compta/bank/class/api_bankaccounts.class.php b/htdocs/compta/bank/class/api_bankaccounts.class.php
index 3293f746033..9c92eed8e70 100644
--- a/htdocs/compta/bank/class/api_bankaccounts.class.php
+++ b/htdocs/compta/bank/class/api_bankaccounts.class.php
@@ -391,8 +391,8 @@ class BankAccounts extends DolibarrApi
/**
* Clean sensible object datas
*
- * @param object $object Object to clean
- * @return array Array of cleaned object properties
+ * @param Object $object Object to clean
+ * @return Object Object with cleaned properties
*/
protected function _cleanObjectDatas($object)
{
diff --git a/htdocs/compta/facture/class/api_invoices.class.php b/htdocs/compta/facture/class/api_invoices.class.php
index 85ad01ab7a6..9cbede6fbb7 100644
--- a/htdocs/compta/facture/class/api_invoices.class.php
+++ b/htdocs/compta/facture/class/api_invoices.class.php
@@ -1643,8 +1643,8 @@ class Invoices extends DolibarrApi
/**
* Clean sensible object datas
*
- * @param object $object Object to clean
- * @return array Array of cleaned object properties
+ * @param Object $object Object to clean
+ * @return Object Object with cleaned properties
*/
protected function _cleanObjectDatas($object)
{
diff --git a/htdocs/contrat/class/api_contracts.class.php b/htdocs/contrat/class/api_contracts.class.php
index b5a9bd91cf4..910ca3b621f 100644
--- a/htdocs/contrat/class/api_contracts.class.php
+++ b/htdocs/contrat/class/api_contracts.class.php
@@ -633,8 +633,8 @@ class Contracts extends DolibarrApi
/**
* Clean sensible object datas
*
- * @param object $object Object to clean
- * @return array Array of cleaned object properties
+ * @param Object $object Object to clean
+ * @return Object Object with cleaned properties
*/
protected function _cleanObjectDatas($object)
{
diff --git a/htdocs/core/boxes/box_actions.php b/htdocs/core/boxes/box_actions.php
index a951402fd7b..eeebb520ab1 100644
--- a/htdocs/core/boxes/box_actions.php
+++ b/htdocs/core/boxes/box_actions.php
@@ -42,7 +42,7 @@ class box_actions extends ModeleBoxes
*/
public $db;
- public $param;
+ public $enabled = 1;
public $info_box_head = array();
public $info_box_contents = array();
@@ -54,12 +54,14 @@ class box_actions extends ModeleBoxes
* @param DoliDB $db Database handler
* @param string $param More parameters
*/
- public function __construct($db, $param = '')
+ public function __construct($db, $param)
{
- global $user;
+ global $conf, $user;
$this->db = $db;
+ $this->enabled = $conf->agenda->enabled;
+
$this->hidden = !($user->rights->agenda->myactions->read);
}
@@ -93,7 +95,7 @@ class box_actions extends ModeleBoxes
if (!$user->rights->societe->client->voir && !$user->socid) $sql .= " LEFT JOIN ".MAIN_DB_PREFIX."societe_commerciaux as sc ON a.fk_soc = sc.fk_soc";
$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."societe as s ON a.fk_soc = s.rowid";
$sql .= " WHERE a.fk_action = ta.id";
- $sql .= " AND a.entity = ".$conf->entity;
+ $sql .= " AND a.entity IN (".getEntity('actioncomm').")";
$sql .= " AND a.percent >= 0 AND a.percent < 100";
if (!$user->rights->societe->client->voir && !$user->socid) $sql .= " AND (a.fk_soc IS NULL OR sc.fk_user = ".$user->id.")";
if ($user->socid) $sql .= " AND s.rowid = ".$user->socid;
@@ -101,13 +103,14 @@ class box_actions extends ModeleBoxes
$sql .= " ORDER BY a.datec DESC";
$sql .= $this->db->plimit($max, 0);
- dol_syslog("Box_actions::loadBox", LOG_DEBUG);
+ dol_syslog(get_class($this)."::loadBox", LOG_DEBUG);
$result = $this->db->query($sql);
if ($result) {
$now = dol_now();
$delay_warning = $conf->global->MAIN_DELAY_ACTIONS_TODO * 24 * 60 * 60;
$num = $this->db->num_rows($result);
+
$line = 0;
while ($line < $num) {
$late = '';
@@ -127,32 +130,35 @@ class box_actions extends ModeleBoxes
//($langs->transnoentities("Action".$objp->code)!=("Action".$objp->code) ? $langs->transnoentities("Action".$objp->code) : $objp->label)
$label = empty($objp->label) ? $objp->type_label : $objp->label;
- $this->info_box_contents[$line][] = array(
+ $this->info_box_contents[$line][0] = array(
'td' => '',
'text' => $actionstatic->getNomUrl(1),
'text2'=> $late,
- 'asis' => 1,
+ 'asis' => 1
);
- $this->info_box_contents[$line][] = array(
+ $this->info_box_contents[$line][1] = array(
'td' => '',
'text' => ($societestatic->id > 0 ? $societestatic->getNomUrl(1) : ''),
- 'asis' => 1,
+ 'asis' => 1
);
- $this->info_box_contents[$line][] = array(
+ $this->info_box_contents[$line][2] = array(
'td' => 'class="nowrap left"',
'text' => dol_print_date($datelimite, "dayhour"),
+ 'asis' => 1
);
- $this->info_box_contents[$line][] = array(
+ $this->info_box_contents[$line][3] = array(
'td' => 'class="right"',
'text' => ($objp->percentage >= 0 ? $objp->percentage.'%' : ''),
+ 'asis' => 1
);
- $this->info_box_contents[$line][] = array(
+ $this->info_box_contents[$line][4] = array(
'td' => 'class="right" width="18"',
'text' => $actionstatic->LibStatut($objp->percentage, 3),
+ 'asis' => 1
);
$line++;
@@ -160,8 +166,8 @@ class box_actions extends ModeleBoxes
if ($num == 0)
$this->info_box_contents[$line][0] = array(
- 'td' => 'class="center"',
- 'text'=>$langs->trans("NoActionsToDo"),
+ 'td' => 'class="center opacitymedium"',
+ 'text'=>$langs->trans("NoActionsToDo")
);
$this->db->free($result);
@@ -169,7 +175,7 @@ class box_actions extends ModeleBoxes
$this->info_box_contents[0][0] = array(
'td' => '',
'maxlength'=>500,
- 'text' => ($this->db->error().' sql='.$sql),
+ 'text' => ($this->db->error().' sql='.$sql)
);
}
} else {
@@ -191,7 +197,7 @@ class box_actions extends ModeleBoxes
public function showBox($head = null, $contents = null, $nooutput = 0)
{
global $langs, $conf;
- $out = parent::showBox($this->info_box_head, $this->info_box_contents);
+ $out = parent::showBox($this->info_box_head, $this->info_box_contents, 1);
if (!empty($conf->global->SHOW_DIALOG_HOMEPAGE))
{
diff --git a/htdocs/core/boxes/modules_boxes.php b/htdocs/core/boxes/modules_boxes.php
index fd179dec7b6..d68d8b4dc3b 100644
--- a/htdocs/core/boxes/modules_boxes.php
+++ b/htdocs/core/boxes/modules_boxes.php
@@ -458,6 +458,7 @@ class ModeleBoxes // Can't be abtract as it is instantiated to build "empty" box
{
// Define disabledbyname and disabledbymodule
$disabledbyname = 0;
+ $disabledbymodule = 0; // TODO Set to 2 if module is not enabled
$module = '';
// Check if widget file is disabled by name
@@ -476,7 +477,7 @@ class ModeleBoxes // Can't be abtract as it is instantiated to build "empty" box
$text = '
'.$langs->trans("Description").':';
$text .= $objMod->boxlabel.'
';
$text .= '
'.$langs->trans("Status").':';
- if ($disabledbymodule == 2) $text .= $langs->trans("HooksDisabledAsModuleDisabled", $module).'
';
+ if ($disabledbymodule == 2) $text .= $langs->trans("WidgetDisabledAsModuleDisabled", $module).'
';
$widget[$j]['info'] = $text;
}
diff --git a/htdocs/core/js/lib_head.js.php b/htdocs/core/js/lib_head.js.php
index b71dfc3eeb2..9bd9227fffa 100644
--- a/htdocs/core/js/lib_head.js.php
+++ b/htdocs/core/js/lib_head.js.php
@@ -1135,7 +1135,7 @@ $(document).ready(function() {
if (window.location !== window.parent.location ) {
console.log("Page is detected to be into an iframe, we hide by CSS the menus");
// The page is in an iframe
- jQuery(".side-nav-vert, .side-nav").hide();
+ jQuery(".side-nav-vert, .side-nav, .websitebar").hide();
jQuery(".id-container").css('width', '100%');
}
diff --git a/htdocs/core/lib/admin.lib.php b/htdocs/core/lib/admin.lib.php
index 49ababf4a25..ac95b6062a8 100644
--- a/htdocs/core/lib/admin.lib.php
+++ b/htdocs/core/lib/admin.lib.php
@@ -296,8 +296,8 @@ function run_sql($sqlfile, $silent = 1, $entity = '', $usesavepoint = 1, $handle
$newsql = preg_replace('/__ENTITY__/i', (!empty($entity) ? $entity : $conf->entity), $sql);
- // Ajout trace sur requete (eventuellement a commenter si beaucoup de requetes)
- if (!$silent) print '
| '.$langs->trans("Request").' '.($i + 1)." sql='".dol_htmlentities($newsql, ENT_NOQUOTES)."' |
\n";
+ // Add log of request
+ if (!$silent) print '
| '.$langs->trans("Request").' '.($i + 1)." sql='".dol_htmlentities($newsql, ENT_NOQUOTES)."' |
\n";
dol_syslog('Admin.lib::run_sql Request '.($i + 1), LOG_DEBUG);
$sqlmodified = 0;
@@ -404,12 +404,34 @@ function run_sql($sqlfile, $silent = 1, $entity = '', $usesavepoint = 1, $handle
if ($error == 0)
{
- if (!$silent) print '
| '.$langs->trans("ProcessMigrateScript").' | ';
- if (!$silent) print ''.$langs->trans("OK").' |
'."\n";
+ if (!$silent) {
+ print '
| '.$langs->trans("ProcessMigrateScript").' | ';
+ print ''.$langs->trans("OK");
+ //if (! empty($conf->use_javascript_ajax)) {
+ print '';
+ print ' - '.$langs->trans("ShowHideDetails").'';
+ //}
+ print ' |
'."\n";
+ }
$ok = 1;
} else {
- if (!$silent) print '
| '.$langs->trans("ProcessMigrateScript").' | ';
- if (!$silent) print ''.$langs->trans("KO").' |
'."\n";
+ if (!$silent) {
+ print '
| '.$langs->trans("ProcessMigrateScript").' | ';
+ print ''.$langs->trans("KO").'';
+ print ' |
'."\n";
+ }
$ok = 0;
}
diff --git a/htdocs/don/class/api_donations.class.php b/htdocs/don/class/api_donations.class.php
index 2d61241c738..73613863e31 100644
--- a/htdocs/don/class/api_donations.class.php
+++ b/htdocs/don/class/api_donations.class.php
@@ -327,8 +327,8 @@ class Donations extends DolibarrApi
/**
* Clean sensible object datas
*
- * @param object $object Object to clean
- * @return array Array of cleaned object properties
+ * @param Object $object Object to clean
+ * @return Object Object with cleaned properties
*/
protected function _cleanObjectDatas($object)
{
diff --git a/htdocs/expedition/class/api_shipments.class.php b/htdocs/expedition/class/api_shipments.class.php
index 1f85ade883b..f5d9a7cdedb 100644
--- a/htdocs/expedition/class/api_shipments.class.php
+++ b/htdocs/expedition/class/api_shipments.class.php
@@ -610,8 +610,8 @@ class Shipments extends DolibarrApi
/**
* Clean sensible object datas
*
- * @param object $object Object to clean
- * @return array Array of cleaned object properties
+ * @param Object $object Object to clean
+ * @return Object Object with cleaned properties
*/
protected function _cleanObjectDatas($object)
{
diff --git a/htdocs/expensereport/class/api_expensereports.class.php b/htdocs/expensereport/class/api_expensereports.class.php
index 405ba52be93..f18f6614ce4 100644
--- a/htdocs/expensereport/class/api_expensereports.class.php
+++ b/htdocs/expensereport/class/api_expensereports.class.php
@@ -494,8 +494,8 @@ class ExpenseReports extends DolibarrApi
/**
* Clean sensible object datas
*
- * @param object $object Object to clean
- * @return array Array of cleaned object properties
+ * @param Object $object Object to clean
+ * @return Object Object with cleaned properties
*/
protected function _cleanObjectDatas($object)
{
diff --git a/htdocs/fichinter/class/api_interventions.class.php b/htdocs/fichinter/class/api_interventions.class.php
index c2328e5cfd3..c4682d555ce 100644
--- a/htdocs/fichinter/class/api_interventions.class.php
+++ b/htdocs/fichinter/class/api_interventions.class.php
@@ -420,8 +420,8 @@ class Interventions extends DolibarrApi
/**
* Clean sensible object datas
*
- * @param object $object Object to clean
- * @return array Array of cleaned object properties
+ * @param Object $object Object to clean
+ * @return Object Object with cleaned properties
*/
protected function _cleanObjectDatas($object)
{
diff --git a/htdocs/fourn/class/api_supplier_invoices.class.php b/htdocs/fourn/class/api_supplier_invoices.class.php
index 8c3ca0108e3..36bcbd76aa7 100644
--- a/htdocs/fourn/class/api_supplier_invoices.class.php
+++ b/htdocs/fourn/class/api_supplier_invoices.class.php
@@ -677,8 +677,8 @@ class SupplierInvoices extends DolibarrApi
/**
* Clean sensible object datas
*
- * @param Object $object Object to clean
- * @return array Array of cleaned object properties
+ * @param Object $object Object to clean
+ * @return Object Object with cleaned properties
*/
protected function _cleanObjectDatas($object)
{
diff --git a/htdocs/fourn/class/api_supplier_orders.class.php b/htdocs/fourn/class/api_supplier_orders.class.php
index 0fd06790011..f1f9563cce3 100644
--- a/htdocs/fourn/class/api_supplier_orders.class.php
+++ b/htdocs/fourn/class/api_supplier_orders.class.php
@@ -339,8 +339,8 @@ class SupplierOrders extends DolibarrApi
/**
* Clean sensible object datas
*
- * @param Object $object Object to clean
- * @return array Array of cleaned object properties
+ * @param Object $object Object to clean
+ * @return Object Object with cleaned properties
*/
protected function _cleanObjectDatas($object)
{
diff --git a/htdocs/install/upgrade.php b/htdocs/install/upgrade.php
index af05fb374d2..5545c4a3bcf 100644
--- a/htdocs/install/upgrade.php
+++ b/htdocs/install/upgrade.php
@@ -146,11 +146,11 @@ if (!GETPOST('action', 'aZ09') || preg_match('/upgrade/i', GETPOST('action', 'aZ
if ($db->connected)
{
print '
| ';
- print $langs->trans("ServerConnection")." : $dolibarr_main_db_host | ".$langs->trans("OK")." |
\n";
+ print $langs->trans("ServerConnection")." : ".$dolibarr_main_db_host.'
'.$langs->trans("OK").' | '."\n";
dolibarr_install_syslog("upgrade: ".$langs->transnoentities("ServerConnection").": $dolibarr_main_db_host ".$langs->transnoentities("OK"));
$ok = 1;
} else {
- print "
| ".$langs->trans("ErrorFailedToConnectToDatabase", $dolibarr_main_db_name)." | ".$langs->transnoentities("Error")." |
\n";
+ print "
| ".$langs->trans("ErrorFailedToConnectToDatabase", $dolibarr_main_db_name).' | '.$langs->transnoentities("Error")." |
\n";
dolibarr_install_syslog("upgrade: ".$langs->transnoentities("ErrorFailedToConnectToDatabase", $dolibarr_main_db_name));
$ok = 0;
}
@@ -160,11 +160,11 @@ if (!GETPOST('action', 'aZ09') || preg_match('/upgrade/i', GETPOST('action', 'aZ
if ($db->database_selected)
{
print '
| ';
- print $langs->trans("DatabaseConnection")." : ".$dolibarr_main_db_name." | ".$langs->trans("OK")." |
\n";
+ print $langs->trans("DatabaseConnection")." : ".$dolibarr_main_db_name.'
'.$langs->trans("OK")." | \n";
dolibarr_install_syslog("upgrade: Database connection successful: ".$dolibarr_main_db_name);
$ok = 1;
} else {
- print "
| ".$langs->trans("ErrorFailedToConnectToDatabase", $dolibarr_main_db_name)." | ".$langs->trans("Error")." |
\n";
+ print "
| ".$langs->trans("ErrorFailedToConnectToDatabase", $dolibarr_main_db_name).' | '.$langs->trans("Error")." |
\n";
dolibarr_install_syslog("upgrade: ".$langs->transnoentities("ErrorFailedToConnectToDatabase", $dolibarr_main_db_name));
$ok = 0;
}
@@ -354,7 +354,7 @@ if (!GETPOST('action', 'aZ09') || preg_match('/upgrade/i', GETPOST('action', 'aZ
{
if (in_array($dir.$file, $listoffileprocessed)) continue;
- print '
|
';
+ print '
|
';
print '
| '.$langs->trans("ChoosedMigrateScript").' | '.$file.' |
'."\n";
// Run sql script
diff --git a/htdocs/langs/en_US/accountancy.lang b/htdocs/langs/en_US/accountancy.lang
index 24255577b11..1d75fa153e8 100644
--- a/htdocs/langs/en_US/accountancy.lang
+++ b/htdocs/langs/en_US/accountancy.lang
@@ -118,6 +118,7 @@ UpdateMvts=Modification of a transaction
ValidTransaction=Validate transaction
WriteBookKeeping=Register transactions in accounting
Bookkeeping=Ledger
+BookkeepingSubAccount=Subledger
AccountBalance=Account balance
ObjectsRef=Source object ref
CAHTF=Total purchase vendor before tax
diff --git a/htdocs/langs/en_US/admin.lang b/htdocs/langs/en_US/admin.lang
index e47390b9ce0..7c583329ef0 100644
--- a/htdocs/langs/en_US/admin.lang
+++ b/htdocs/langs/en_US/admin.lang
@@ -80,6 +80,7 @@ AllowToSelectProjectFromOtherCompany=On document of a third party, can choose a
JavascriptDisabled=JavaScript disabled
UsePreviewTabs=Use preview tabs
ShowPreview=Show preview
+ShowHideDetails=Show-Hide details
PreviewNotAvailable=Preview not available
ThemeCurrentlyActive=Theme currently active
CurrentTimeZone=TimeZone PHP (server)
diff --git a/htdocs/langs/en_US/main.lang b/htdocs/langs/en_US/main.lang
index 1096b9857f1..2068a37af2b 100644
--- a/htdocs/langs/en_US/main.lang
+++ b/htdocs/langs/en_US/main.lang
@@ -884,6 +884,8 @@ Miscellaneous=Miscellaneous
Calendar=Calendar
GroupBy=Group by...
ViewFlatList=View flat list
+ViewAccountList=View ledger
+ViewSubAccountList=View subaccount ledger
RemoveString=Remove string '%s'
SomeTranslationAreUncomplete=Some of the languages offered may be only partially translated or may contain errors. Please help to correct your language by registering at
https://transifex.com/projects/p/dolibarr/ to add your improvements.
DirectDownloadLink=Direct download link (public/external)
@@ -1099,4 +1101,4 @@ DateOfBirth=Date of birth
SecurityTokenHasExpiredSoActionHasBeenCanceledPleaseRetry=Security token has expired, so action has been canceled. Please try again.
UpToDate=Up-to-date
OutOfDate=Out-of-date
-EventReminder=Event Reminder
\ No newline at end of file
+EventReminder=Event Reminder
diff --git a/htdocs/modulebuilder/template/class/api_mymodule.class.php b/htdocs/modulebuilder/template/class/api_mymodule.class.php
index 32113b71ef0..da1b243979f 100644
--- a/htdocs/modulebuilder/template/class/api_mymodule.class.php
+++ b/htdocs/modulebuilder/template/class/api_mymodule.class.php
@@ -290,8 +290,8 @@ class MyModuleApi extends DolibarrApi
/**
* Clean sensible object datas
*
- * @param object $object Object to clean
- * @return array Array of cleaned object properties
+ * @param Object $object Object to clean
+ * @return Object Object with cleaned properties
*/
protected function _cleanObjectDatas($object)
{
diff --git a/htdocs/mrp/class/api_mos.class.php b/htdocs/mrp/class/api_mos.class.php
index d502e5cc99d..7eecaac860a 100644
--- a/htdocs/mrp/class/api_mos.class.php
+++ b/htdocs/mrp/class/api_mos.class.php
@@ -270,8 +270,8 @@ class Mos extends DolibarrApi
/**
* Clean sensible object datas
*
- * @param object $object Object to clean
- * @return array Array of cleaned object properties
+ * @param Object $object Object to clean
+ * @return Object Object with cleaned properties
*/
protected function _cleanObjectDatas($object)
{
diff --git a/htdocs/product/class/api_products.class.php b/htdocs/product/class/api_products.class.php
index 6c75d96fe89..86be8d8f5d9 100644
--- a/htdocs/product/class/api_products.class.php
+++ b/htdocs/product/class/api_products.class.php
@@ -1740,8 +1740,8 @@ class Products extends DolibarrApi
/**
* Clean sensible object datas
*
- * @param object $object Object to clean
- * @return array Array of cleaned object properties
+ * @param Object $object Object to clean
+ * @return Object Object with cleaned properties
*/
protected function _cleanObjectDatas($object)
{
diff --git a/htdocs/product/stock/class/api_stockmovements.class.php b/htdocs/product/stock/class/api_stockmovements.class.php
index 71f687a1b03..be183e6451f 100644
--- a/htdocs/product/stock/class/api_stockmovements.class.php
+++ b/htdocs/product/stock/class/api_stockmovements.class.php
@@ -276,8 +276,8 @@ class StockMovements extends DolibarrApi
/**
* Clean sensible object datas
*
- * @param MouvementStock $object Object to clean
- * @return array Array of cleaned object properties
+ * @param MouvementStock $object Object to clean
+ * @return Object Object with cleaned properties
*/
protected function _cleanObjectDatas($object)
{
diff --git a/htdocs/product/stock/class/api_warehouses.class.php b/htdocs/product/stock/class/api_warehouses.class.php
index 1c31bbbc2af..933e8be66c9 100644
--- a/htdocs/product/stock/class/api_warehouses.class.php
+++ b/htdocs/product/stock/class/api_warehouses.class.php
@@ -255,8 +255,8 @@ class Warehouses extends DolibarrApi
/**
* Clean sensible object datas
*
- * @param Entrepot $object Object to clean
- * @return array Array of cleaned object properties
+ * @param Entrepot $object Object to clean
+ * @return Object Object with cleaned properties
*/
protected function _cleanObjectDatas($object)
{
diff --git a/htdocs/projet/class/api_projects.class.php b/htdocs/projet/class/api_projects.class.php
index 214cbe96154..f060f56e615 100644
--- a/htdocs/projet/class/api_projects.class.php
+++ b/htdocs/projet/class/api_projects.class.php
@@ -542,8 +542,8 @@ class Projects extends DolibarrApi
/**
* Clean sensible object datas
*
- * @param object $object Object to clean
- * @return array Array of cleaned object properties
+ * @param Object $object Object to clean
+ * @return Object Object with cleaned properties
*/
protected function _cleanObjectDatas($object)
{
diff --git a/htdocs/projet/class/api_tasks.class.php b/htdocs/projet/class/api_tasks.class.php
index 5181beb3707..707e14a2c44 100644
--- a/htdocs/projet/class/api_tasks.class.php
+++ b/htdocs/projet/class/api_tasks.class.php
@@ -550,8 +550,8 @@ class Tasks extends DolibarrApi
/**
* Clean sensible object datas
*
- * @param object $object Object to clean
- * @return array Array of cleaned object properties
+ * @param Object $object Object to clean
+ * @return Object Object with cleaned properties
*/
protected function _cleanObjectDatas($object)
{
diff --git a/htdocs/societe/class/api_contacts.class.php b/htdocs/societe/class/api_contacts.class.php
index d5280ee80dd..bcebc4ad22b 100644
--- a/htdocs/societe/class/api_contacts.class.php
+++ b/htdocs/societe/class/api_contacts.class.php
@@ -519,7 +519,7 @@ class Contacts extends DolibarrApi
* Clean sensible object datas
*
* @param Object $object Object to clean
- * @return array Array of cleaned object properties
+ * @return Object Object with cleaned properties
*/
protected function _cleanObjectDatas($object)
{
diff --git a/htdocs/societe/class/api_thirdparties.class.php b/htdocs/societe/class/api_thirdparties.class.php
index 0e25a0984bd..a0441527b9d 100644
--- a/htdocs/societe/class/api_thirdparties.class.php
+++ b/htdocs/societe/class/api_thirdparties.class.php
@@ -1771,8 +1771,8 @@ class Thirdparties extends DolibarrApi
/**
* Clean sensible object datas
*
- * @param Object $object Object to clean
- * @return Object Object with cleaned properties
+ * @param Object $object Object to clean
+ * @return Object Object with cleaned properties
*/
protected function _cleanObjectDatas($object)
{
diff --git a/htdocs/supplier_proposal/class/api_supplier_proposals.class.php b/htdocs/supplier_proposal/class/api_supplier_proposals.class.php
index ba2fa37e1b9..156dd66e5f6 100644
--- a/htdocs/supplier_proposal/class/api_supplier_proposals.class.php
+++ b/htdocs/supplier_proposal/class/api_supplier_proposals.class.php
@@ -193,8 +193,8 @@ class Supplierproposals extends DolibarrApi
/**
* Clean sensible object datas
*
- * @param object $object Object to clean
- * @return array Array of cleaned object properties
+ * @param Object $object Object to clean
+ * @return Object Object with cleaned properties
*/
protected function _cleanObjectDatas($object)
{
diff --git a/htdocs/theme/eldy/info-box.inc.php b/htdocs/theme/eldy/info-box.inc.php
index b037cfdc851..1bb6ae7c67e 100644
--- a/htdocs/theme/eldy/info-box.inc.php
+++ b/htdocs/theme/eldy/info-box.inc.php
@@ -214,6 +214,8 @@ a.info-box-text-a i.fa.fa-exclamation-triangle {
text-transform: uppercase;
font-weight: bold;
margin-bottom: 3px; /* not too much space so we can add another lines */
+ opacity: 0.6;
+ /* color: var(--colortexttitlenotab); */
}
.info-box-text{
font-size: 0.92em;
diff --git a/htdocs/ticket/class/api_tickets.class.php b/htdocs/ticket/class/api_tickets.class.php
index e4343cccbc6..5ba67060552 100644
--- a/htdocs/ticket/class/api_tickets.class.php
+++ b/htdocs/ticket/class/api_tickets.class.php
@@ -489,8 +489,8 @@ class Tickets extends DolibarrApi
/**
* Clean sensible object datas
*
- * @param object $object Object to clean
- * @return array Array of cleaned object properties
+ * @param Object $object Object to clean
+ * @return Object Object with cleaned properties
*
* @todo use an array for properties to clean
*
diff --git a/htdocs/website/index.php b/htdocs/website/index.php
index dc3407b8f21..32ced5dc2dd 100644
--- a/htdocs/website/index.php
+++ b/htdocs/website/index.php
@@ -2406,7 +2406,8 @@ if (!GETPOST('hide_websitemenu'))
if ($websitekey && $websitekey != '-1' && ($action == 'preview' || $action == 'createfromclone' || $action == 'createpagefromclone' || $action == 'deletesite'))
{
print '
';
- print 'ref.'" class="button bordertransp"'.$disabled.' title="'.dol_escape_htmltag($langs->trans("MediaFiles")).'">';
+ //print 'ref.'" class="button bordertransp"'.$disabled.' title="'.dol_escape_htmltag($langs->trans("MediaFiles")).'">';
+ print dolButtonToOpenUrlInDialogPopup('file_manager', $langs->transnoentitiesnoconv("MediaFiles"), '', '/website/index.php?action=file_manager&website='.$website->ref, $disabled);
if (! empty($conf->categorie->enabled)) {
//print '';
diff --git a/htdocs/zapier/class/api_zapier.class.php b/htdocs/zapier/class/api_zapier.class.php
index 5afa1952c4a..bb3e42f5f05 100644
--- a/htdocs/zapier/class/api_zapier.class.php
+++ b/htdocs/zapier/class/api_zapier.class.php
@@ -336,8 +336,8 @@ class ZapierApi extends DolibarrApi
/**
* Clean sensible object datas
*
- * @param Object $object Object to clean
- * @return Object Array of cleaned object properties
+ * @param Object $object Object to clean
+ * @return Object Object with cleaned properties
*/
public function _cleanObjectDatas($object)
{