Update setup.php
This commit is contained in:
parent
12b046cb68
commit
83cb6b6753
@ -78,6 +78,7 @@ $scandir = GETPOST('scan_dir', 'alpha');
|
|||||||
$type = 'myobject';
|
$type = 'myobject';
|
||||||
|
|
||||||
|
|
||||||
|
if ((float) DOL_VERSION >= 15) {
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formsetup.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formsetup.class.php';
|
||||||
$formSetup = new FormSetup($db);
|
$formSetup = new FormSetup($db);
|
||||||
|
|
||||||
@ -110,7 +111,7 @@ $formSetup->newItem('MYMODULE_MYPARAM6')->setAsSecureKey()->enabled = 0; // disa
|
|||||||
|
|
||||||
// Setup conf MYMODULE_MYPARAM7
|
// Setup conf MYMODULE_MYPARAM7
|
||||||
$formSetup->newItem('MYMODULE_MYPARAM7')->setAsProduct();
|
$formSetup->newItem('MYMODULE_MYPARAM7')->setAsProduct();
|
||||||
|
}
|
||||||
|
|
||||||
$error = 0;
|
$error = 0;
|
||||||
$setupnotempty = 0;
|
$setupnotempty = 0;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user