diff --git a/htdocs/admin/facture.php b/htdocs/admin/facture.php
index be729112cbf..1ff2760f8bb 100644
--- a/htdocs/admin/facture.php
+++ b/htdocs/admin/facture.php
@@ -116,7 +116,6 @@ print '
'.$langs->trans("Name").' | ';
print ''.$langs->trans("Description").' | ';
print ''.$langs->trans("Example").' | ';
print ''.$langs->trans("Default").' | ';
-print ''.$langs->trans("NextValue").' | ';
print ''."\n";
clearstatcache();
@@ -150,13 +149,16 @@ while (($file = readdir($handle))!==false)
print '';
if ($facture_addon_var == "$file")
{
- print img_tick();
- print " | ".$obj->getNextValue()." | \n";
+ $title='';
+ if ($obj->getNextValue() != $langs->trans("NotAvailable"))
+ {
+ $title=$langs->trans("NextValue").': '.$obj->getNextValue();
+ }
+ print img_tick($title);
}
else
{
print ''.$langs->trans("Default").'';
- print " | \n";
}
print "\n";
}
diff --git a/htdocs/admin/propale.php b/htdocs/admin/propale.php
index 45fb77ef62b..93ae71185a0 100644
--- a/htdocs/admin/propale.php
+++ b/htdocs/admin/propale.php
@@ -127,8 +127,7 @@ print '';
print '| '.$langs->trans("Name")." | \n";
print ''.$langs->trans("Description")." | \n";
print ''.$langs->trans("Example")." | \n";
-print ''.$langs->trans("Activated")." | \n";
-print ''.$langs->trans("NextValue")." | \n";
+print ''.$langs->trans("Activated").' | ';
print '
'."\n";
clearstatcache();
@@ -152,18 +151,21 @@ if ($handle)
print "\n ".$modPropale->info()." | \n";
print "\n ".$modPropale->getExample()." | \n";
+ print '';
if ($propale_addon_var == "$file")
{
- print ' | ';
- print img_tick();
- print ' | ';
- print "\n ".$modPropale->getNextValue()." | \n";
+ $title='';
+ if ($modPropale->getNextValue() != $langs->trans("NotAvailable"))
+ {
+ $title=$langs->trans("NextValue").': '.$modPropale->getNextValue();
+ }
+ print img_tick($title);
}
else
{
- print "".$langs->trans("Activate")." | \n";
- print "\n | \n";
+ print "".$langs->trans("Activate")."";
}
+ print '';
print "\n";