Merge pull request #22246 from dolibit-ut/patch-601

Update setup.php
This commit is contained in:
Laurent Destailleur 2022-09-13 15:19:19 +02:00 committed by GitHub
commit 67abb622e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -97,7 +97,7 @@ if (!class_exists('FormSetup')) {
$formSetup = new FormSetup($db);
// Hôte
// HTTP HOST
$item = $formSetup->newItem('NO_PARAM_JUST_TEXT');
$item->fieldOverride = (empty($_SERVER['HTTPS']) ? 'http://' : 'https://') . $_SERVER['HTTP_HOST'];
$item->cssClass = 'minwidth500';
@ -106,7 +106,7 @@ $item->cssClass = 'minwidth500';
$item = $formSetup->newItem('MYMODULE_MYPARAM1');
$item->defaultFieldValue = 'default value';
// Setup conf MYMODULE_MYPARAM1 as a simple textarea input but we replace the text of field title
// Setup conf MYMODULE_MYPARAM2 as a simple textarea input but we replace the text of field title
$item = $formSetup->newItem('MYMODULE_MYPARAM2');
$item->nameText = $item->getNameText().' more html text ';