Fix: Show error message
This commit is contained in:
parent
ab8d73226b
commit
d6abe49da2
@ -246,8 +246,12 @@ foreach ($conf->file->dol_document_root as $dirroot)
|
|||||||
print $module->info();
|
print $module->info();
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
// Examples
|
// Show example of numbering module
|
||||||
print '<td nowrap="nowrap">'.$module->getExample()."</td>\n";
|
print '<td nowrap="nowrap">';
|
||||||
|
$tmp=$module->getExample();
|
||||||
|
if (preg_match('/^Error/',$tmp)) print $langs->trans($tmp);
|
||||||
|
else print $tmp;
|
||||||
|
print '</td>'."\n";
|
||||||
|
|
||||||
print '<td align="center">';
|
print '<td align="center">';
|
||||||
if ($conf->global->COMMANDE_ADDON == "$file")
|
if ($conf->global->COMMANDE_ADDON == "$file")
|
||||||
|
|||||||
@ -119,8 +119,12 @@ if (is_resource($handle))
|
|||||||
print $module->info();
|
print $module->info();
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
// Examples
|
// Show example of numbering module
|
||||||
print '<td nowrap="nowrap">'.$module->getExample()."</td>\n";
|
print '<td nowrap="nowrap">';
|
||||||
|
$tmp=$module->getExample();
|
||||||
|
if (preg_match('/^Error/',$tmp)) print $langs->trans($tmp);
|
||||||
|
else print $tmp;
|
||||||
|
print '</td>'."\n";
|
||||||
|
|
||||||
print '<td align="center">';
|
print '<td align="center">';
|
||||||
if ($conf->global->CONTRACT_ADDON == "$file")
|
if ($conf->global->CONTRACT_ADDON == "$file")
|
||||||
|
|||||||
@ -329,8 +329,12 @@ foreach ($conf->file->dol_document_root as $dirroot)
|
|||||||
print $module->info();
|
print $module->info();
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
// Examples
|
// Show example of numbering module
|
||||||
print '<td nowrap="nowrap">'.$module->getExample()."</td>\n";
|
print '<td nowrap="nowrap">';
|
||||||
|
$tmp=$module->getExample();
|
||||||
|
if (preg_match('/^Error/',$tmp)) print $langs->trans($tmp);
|
||||||
|
else print $tmp;
|
||||||
|
print '</td>'."\n";
|
||||||
|
|
||||||
print '<td align="center">';
|
print '<td align="center">';
|
||||||
if ($conf->global->EXPEDITION_ADDON_NUMBER == "$file")
|
if ($conf->global->EXPEDITION_ADDON_NUMBER == "$file")
|
||||||
|
|||||||
@ -35,6 +35,7 @@ $langs->load("admin");
|
|||||||
$langs->load("companies");
|
$langs->load("companies");
|
||||||
$langs->load("bills");
|
$langs->load("bills");
|
||||||
$langs->load("other");
|
$langs->load("other");
|
||||||
|
$langs->load("errors");
|
||||||
|
|
||||||
if (!$user->admin)
|
if (!$user->admin)
|
||||||
accessforbidden();
|
accessforbidden();
|
||||||
@ -303,8 +304,12 @@ foreach ($conf->file->dol_document_root as $dirroot)
|
|||||||
|
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
// Affiche example
|
// Show example of numbering module
|
||||||
print '<td nowrap="nowrap">'.$module->getExample().'</td>';
|
print '<td nowrap="nowrap">';
|
||||||
|
$tmp=$module->getExample();
|
||||||
|
if (preg_match('/^Error/',$tmp)) print $langs->trans($tmp);
|
||||||
|
else print $tmp;
|
||||||
|
print '</td>'."\n";
|
||||||
|
|
||||||
print '<td align="center">';
|
print '<td align="center">';
|
||||||
//print "> ".$conf->global->FACTURE_ADDON." - ".$file;
|
//print "> ".$conf->global->FACTURE_ADDON." - ".$file;
|
||||||
@ -359,7 +364,7 @@ foreach ($conf->file->dol_document_root as $dirroot)
|
|||||||
|
|
||||||
if ($conf->global->FACTURE_ADDON.'.php' == $file) // If module is the one used, we show existing errors
|
if ($conf->global->FACTURE_ADDON.'.php' == $file) // If module is the one used, we show existing errors
|
||||||
{
|
{
|
||||||
if (! empty($module->error)) dol_htmloutput_errors($module->error,'');
|
if (! empty($module->error)) dol_htmloutput_errors($module->error,'',1);
|
||||||
}
|
}
|
||||||
|
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|||||||
@ -236,8 +236,12 @@ foreach ($conf->file->dol_document_root as $dirroot)
|
|||||||
print $module->info();
|
print $module->info();
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
// Examples
|
// Show example of numbering module
|
||||||
print '<td nowrap="nowrap">'.$module->getExample()."</td>\n";
|
print '<td nowrap="nowrap">';
|
||||||
|
$tmp=$module->getExample();
|
||||||
|
if (preg_match('/^Error/',$tmp)) print $langs->trans($tmp);
|
||||||
|
else print $tmp;
|
||||||
|
print '</td>'."\n";
|
||||||
|
|
||||||
print '<td align="center">';
|
print '<td align="center">';
|
||||||
if ($conf->global->FICHEINTER_ADDON == $classname)
|
if ($conf->global->FICHEINTER_ADDON == $classname)
|
||||||
|
|||||||
@ -270,8 +270,12 @@ if (is_resource($handle))
|
|||||||
print $module->info();
|
print $module->info();
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
// Examples
|
// Show example of numbering module
|
||||||
print '<td nowrap="nowrap">'.$module->getExample()."</td>\n";
|
print '<td nowrap="nowrap">';
|
||||||
|
$tmp=$module->getExample();
|
||||||
|
if (preg_match('/^Error/',$tmp)) print $langs->trans($tmp);
|
||||||
|
else print $tmp;
|
||||||
|
print '</td>'."\n";
|
||||||
|
|
||||||
print '<td align="center">';
|
print '<td align="center">';
|
||||||
if ($conf->global->COMMANDE_SUPPLIER_ADDON == "$file")
|
if ($conf->global->COMMANDE_SUPPLIER_ADDON == "$file")
|
||||||
|
|||||||
@ -243,8 +243,12 @@ foreach ($conf->file->dol_document_root as $dirroot)
|
|||||||
print $module->info();
|
print $module->info();
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
// Affiche example
|
// Show example of numbering module
|
||||||
print '<td nowrap="nowrap">'.$module->getExample().'</td>';
|
print '<td nowrap="nowrap">';
|
||||||
|
$tmp=$module->getExample();
|
||||||
|
if (preg_match('/^Error/',$tmp)) print $langs->trans($tmp);
|
||||||
|
else print $tmp;
|
||||||
|
print '</td>'."\n";
|
||||||
|
|
||||||
print '<td align="center">';
|
print '<td align="center">';
|
||||||
if ($conf->global->LIVRAISON_ADDON == "$file")
|
if ($conf->global->LIVRAISON_ADDON == "$file")
|
||||||
|
|||||||
@ -207,8 +207,12 @@ if (is_resource($handle))
|
|||||||
print $module->info();
|
print $module->info();
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
// Examples
|
// Show example of numbering module
|
||||||
print '<td nowrap="nowrap">'.$module->getExample()."</td>\n";
|
print '<td nowrap="nowrap">';
|
||||||
|
$tmp=$module->getExample();
|
||||||
|
if (preg_match('/^Error/',$tmp)) print $langs->trans($tmp);
|
||||||
|
else print $tmp;
|
||||||
|
print '</td>'."\n";
|
||||||
|
|
||||||
print '<td align="center">';
|
print '<td align="center">';
|
||||||
if ($conf->global->PROJECT_ADDON == "$file")
|
if ($conf->global->PROJECT_ADDON == "$file")
|
||||||
|
|||||||
@ -247,8 +247,12 @@ foreach ($conf->file->dol_document_root as $dirroot)
|
|||||||
print $module->info();
|
print $module->info();
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
// Examples
|
// Show example of numbering module
|
||||||
print '<td nowrap="nowrap">'.$module->getExample()."</td>\n";
|
print '<td nowrap="nowrap">';
|
||||||
|
$tmp=$module->getExample();
|
||||||
|
if (preg_match('/^Error/',$tmp)) print $langs->trans($tmp);
|
||||||
|
else print $tmp;
|
||||||
|
print '</td>'."\n";
|
||||||
|
|
||||||
print '<td align="center">';
|
print '<td align="center">';
|
||||||
if ($conf->global->PROPALE_ADDON == "$file")
|
if ($conf->global->PROPALE_ADDON == "$file")
|
||||||
|
|||||||
@ -259,8 +259,12 @@ foreach ($arrayhandler as $key => $module)
|
|||||||
print $langs->trans("MinLength").': '.$module->length;
|
print $langs->trans("MinLength").': '.$module->length;
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
// Affiche example
|
// Show example of numbering module
|
||||||
print '<td width="60">'.$module->getExample().'</td>';
|
print '<td nowrap="nowrap">';
|
||||||
|
$tmp=$module->getExample();
|
||||||
|
if (preg_match('/^Error/',$tmp)) print $langs->trans($tmp);
|
||||||
|
else print $tmp;
|
||||||
|
print '</td>'."\n";
|
||||||
|
|
||||||
print '<td width="100" align="center">';
|
print '<td width="100" align="center">';
|
||||||
if ($conf->global->USER_PASSWORD_GENERATED == $key)
|
if ($conf->global->USER_PASSWORD_GENERATED == $key)
|
||||||
|
|||||||
@ -75,3 +75,6 @@ ErrorDatabaseParameterWrong=Database setup parameter '<b>%s</b>' has a value not
|
|||||||
ErrorNumRefModel=A reference exists into database (%s) and is not compatible with this numbering rule. Remove record or renamed reference to activate this module.
|
ErrorNumRefModel=A reference exists into database (%s) and is not compatible with this numbering rule. Remove record or renamed reference to activate this module.
|
||||||
ErrorQtyTooLowForThisSupplier=Quantity too low for this supplier or no price defined on this product for this supplier
|
ErrorQtyTooLowForThisSupplier=Quantity too low for this supplier or no price defined on this product for this supplier
|
||||||
ErrorModuleSetupNotComplete=Setup of module looks to be uncomplete. Go on Setup - Modules to complete.
|
ErrorModuleSetupNotComplete=Setup of module looks to be uncomplete. Go on Setup - Modules to complete.
|
||||||
|
ErrorBadMask=Error on mask
|
||||||
|
ErrorBadMaskFailedToLocatePosOfSequence=Error, mask without sequence number
|
||||||
|
ErrorBadMaskBadRazMonth=Erreur, bad reset value
|
||||||
Loading…
Reference in New Issue
Block a user