Merge pull request #11567 from inoveaconseil/ContextDashboard

WIP: Context dashboard
This commit is contained in:
Laurent Destailleur 2019-10-01 15:21:35 +02:00 committed by GitHub
commit 29a2601b9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,6 +2,7 @@
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-2012 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2005-2012 Regis Houssin <regis.houssin@inodbox.com>
* Copyright (C) 2019 Nicolas ZABOURI <info@inovea-conseil.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -34,7 +35,40 @@ class InfoBox
*/
public static function getListOfPagesForBoxes()
{
return array(0=>'Home');
global $conf;
if($conf->global->MAIN_FEATURES_LEVEL < 2)
return array(0 => 'Home');
else
{
return array(0 => 'Home',
1 => 'userhome',
2 => 'membersindex',
3 => 'thirdpartiesindex',
4 => 'productindex',
5 => 'productindex',
6 => 'mrpindex',
7 => 'commercialindex',
8 => 'projectsindex',
9 => 'invoiceindex',
10 => 'hrmindex',
11 => 'ticketsindex',
12 => 'stockindex',
13 => 'sendingindex',
14 => 'receptionindex',
15 => 'activityindex',
16 => 'proposalindex',
17 => 'ordersindex',
18 => 'orderssuppliersindex',
19 => 'contractindex',
20 => 'interventionindex',
21 => 'suppliersproposalsindex',
22 => 'donationindex',
23 => 'specialexpensesindex',
24 => 'expensereportindex',
25 => 'mailingindex',
26 => 'opensurveyindex');
}
}
/**