Debug v17
This commit is contained in:
parent
b7508f5135
commit
a4472f52e2
@ -53,7 +53,7 @@ $label = GETPOST('label', 'alpha');
|
|||||||
$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php
|
$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php
|
||||||
|
|
||||||
$scandir = GETPOST('scan_dir', 'alpha');
|
$scandir = GETPOST('scan_dir', 'alpha');
|
||||||
$type = 'myobject';
|
$type = 'evaluation';
|
||||||
|
|
||||||
$arrayofparameters = array(
|
$arrayofparameters = array(
|
||||||
'HRM_MAXRANK'=>array('type'=>'integer','enabled'=>1),
|
'HRM_MAXRANK'=>array('type'=>'integer','enabled'=>1),
|
||||||
@ -210,10 +210,10 @@ print dol_get_fiche_head($head, 'settings', $langs->trans($page_name), -1, "hrm"
|
|||||||
|
|
||||||
$moduledir = 'hrm';
|
$moduledir = 'hrm';
|
||||||
$myTmpObjects = array();
|
$myTmpObjects = array();
|
||||||
$myTmpObjects['evaluation'] = array('includerefgeneration'=>1, 'includedocgeneration'=>0);
|
$myTmpObjects['evaluation'] = array('label'=>'Evaluation', 'includerefgeneration'=>1, 'includedocgeneration'=>0);
|
||||||
|
|
||||||
foreach ($myTmpObjects as $myTmpObjectKey => $myTmpObjectArray) {
|
foreach ($myTmpObjects as $myTmpObjectKey => $myTmpObjectArray) {
|
||||||
if ($myTmpObjectKey == 'MyObject') {
|
if ($myTmpObjectKey != $type) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if ($myTmpObjectArray['includerefgeneration']) {
|
if ($myTmpObjectArray['includerefgeneration']) {
|
||||||
@ -222,7 +222,7 @@ foreach ($myTmpObjects as $myTmpObjectKey => $myTmpObjectArray) {
|
|||||||
*/
|
*/
|
||||||
$setupnotempty++;
|
$setupnotempty++;
|
||||||
|
|
||||||
print load_fiche_titre($langs->trans("NumberingModules", $myTmpObjectKey), '', '');
|
print load_fiche_titre($langs->trans("NumberingModules").' ('.$myTmpObjectArray['label'].')', '', '');
|
||||||
|
|
||||||
print '<table class="noborder centpercent">';
|
print '<table class="noborder centpercent">';
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
|
|||||||
@ -318,11 +318,12 @@ if ($action == 'edit') {
|
|||||||
|
|
||||||
$moduledir = 'mymodule';
|
$moduledir = 'mymodule';
|
||||||
$myTmpObjects = array();
|
$myTmpObjects = array();
|
||||||
$myTmpObjects['MyObject'] = array('includerefgeneration'=>0, 'includedocgeneration'=>0);
|
// TODO Scan list of objects
|
||||||
|
$myTmpObjects['myobject'] = array('label'=>'MyObject', 'includerefgeneration'=>0, 'includedocgeneration'=>0);
|
||||||
|
|
||||||
|
|
||||||
foreach ($myTmpObjects as $myTmpObjectKey => $myTmpObjectArray) {
|
foreach ($myTmpObjects as $myTmpObjectKey => $myTmpObjectArray) {
|
||||||
if ($myTmpObjectKey == 'MyObject') {
|
if ($myTmpObjectKey != $type) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if ($myTmpObjectArray['includerefgeneration']) {
|
if ($myTmpObjectArray['includerefgeneration']) {
|
||||||
@ -331,7 +332,7 @@ foreach ($myTmpObjects as $myTmpObjectKey => $myTmpObjectArray) {
|
|||||||
*/
|
*/
|
||||||
$setupnotempty++;
|
$setupnotempty++;
|
||||||
|
|
||||||
print load_fiche_titre($langs->trans("NumberingModules", $myTmpObjectKey), '', '');
|
print load_fiche_titre($langs->trans("NumberingModules", $myTmpObjectArray['label']), '', '');
|
||||||
|
|
||||||
print '<table class="noborder centpercent">';
|
print '<table class="noborder centpercent">';
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user