mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-10 19:41:26 +01:00
Debug v18
This commit is contained in:
@@ -227,7 +227,7 @@ print '<span class="opacitymedium">'.$langs->trans("StockTransferSetupPage").'</
|
|||||||
|
|
||||||
$moduledir = 'stocktransfer';
|
$moduledir = 'stocktransfer';
|
||||||
$myTmpObjects = array();
|
$myTmpObjects = array();
|
||||||
$myTmpObjects[$moduledir]=array('includerefgeneration'=>1, 'includedocgeneration'=>1);
|
$myTmpObjects[$moduledir]=array('includerefgeneration'=>1, 'includedocgeneration'=>1, 'class'=>'StockTransfer');
|
||||||
|
|
||||||
foreach ($myTmpObjects as $myTmpObjectKey => $myTmpObjectArray) {
|
foreach ($myTmpObjects as $myTmpObjectKey => $myTmpObjectArray) {
|
||||||
if ($myTmpObjectKey == 'MyObject') continue;
|
if ($myTmpObjectKey == 'MyObject') continue;
|
||||||
@@ -294,7 +294,7 @@ foreach ($myTmpObjects as $myTmpObjectKey => $myTmpObjectArray) {
|
|||||||
}
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
$nameofclass = ucfirst($myTmpObjectKey);
|
$nameofclass = $myTmpObjectArray['class'];
|
||||||
$mytmpinstance = new $nameofclass($db);
|
$mytmpinstance = new $nameofclass($db);
|
||||||
$mytmpinstance->initAsSpecimen();
|
$mytmpinstance->initAsSpecimen();
|
||||||
|
|
||||||
|
|||||||
@@ -316,7 +316,7 @@ if ($action == 'edit') {
|
|||||||
$moduledir = 'mymodule';
|
$moduledir = 'mymodule';
|
||||||
$myTmpObjects = array();
|
$myTmpObjects = array();
|
||||||
// TODO Scan list of objects
|
// TODO Scan list of objects
|
||||||
$myTmpObjects['myobject'] = array('label'=>'MyObject', 'includerefgeneration'=>0, 'includedocgeneration'=>0);
|
$myTmpObjects['myobject'] = array('label'=>'MyObject', 'includerefgeneration'=>0, 'includedocgeneration'=>0, 'class'=>'MyObject');
|
||||||
|
|
||||||
|
|
||||||
foreach ($myTmpObjects as $myTmpObjectKey => $myTmpObjectArray) {
|
foreach ($myTmpObjects as $myTmpObjectKey => $myTmpObjectArray) {
|
||||||
@@ -392,7 +392,7 @@ foreach ($myTmpObjects as $myTmpObjectKey => $myTmpObjectArray) {
|
|||||||
}
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
$nameofclass = ucfirst($myTmpObjectKey);
|
$nameofclass = $myTmpObjectArray['class'];
|
||||||
$mytmpinstance = new $nameofclass($db);
|
$mytmpinstance = new $nameofclass($db);
|
||||||
$mytmpinstance->initAsSpecimen();
|
$mytmpinstance->initAsSpecimen();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user