Update mod_propale_saphir.php

This commit is contained in:
This Charlène 2022-08-13 12:22:54 +02:00 committed by GitHub
parent baaa72c80d
commit 29bfcfc02b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,7 +85,8 @@ class mod_propale_saphir extends ModeleNumRefPropales
// Parametrage du prefix
$texte .= '<tr><td>'.$langs->trans("Mask").':</td>';
$texte .= '<td class="right">'.$form->textwithpicto('<input type="text" class="flat minwidth175" name="maskpropal" value="'.$conf->global->PROPALE_SAPHIR_MASK.'">', $tooltip, 1, 1).'</td>';
$mask=!empty($conf->global->PROPALE_SAPHIR_MASK)?$conf->global->PROPALE_SAPHIR_MASK:"";
$texte .= '<td class="right">'.$form->textwithpicto('<input type="text" class="flat minwidth175" name="maskpropal" value="'.$mask.'">', $tooltip, 1, 1).'</td>';
$texte .= '<td class="left" rowspan="2">&nbsp; <input type="submit" class="button button-edit" name="Button"value="'.$langs->trans("Modify").'"></td>';
@ -134,7 +135,7 @@ class mod_propale_saphir extends ModeleNumRefPropales
require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
// On defini critere recherche compteur
$mask = $conf->global->PROPALE_SAPHIR_MASK;
$mask=!empty($conf->global->PROPALE_SAPHIR_MASK)?$conf->global->PROPALE_SAPHIR_MASK:"";
if (!$mask) {
$this->error = 'NotConfigured';