Fix message if no record found
This commit is contained in:
parent
d4ab580e9b
commit
06422a5d03
@ -714,9 +714,13 @@ if ($object->fetch($id) >= 0) {
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
if ($object->statut < 2) {
|
||||
print '<tr><td colspan="9" class="opacitymedium">';
|
||||
print $langs->trans("NoTargetYet");
|
||||
if ($object->statut < $object::STATUS_SENTPARTIALY) {
|
||||
print '<tr><td colspan="9">';
|
||||
print '<span class="opacitymedium">'.$langs->trans("NoTargetYet").'</span>';
|
||||
print '</td></tr>';
|
||||
} else {
|
||||
print '<tr><td colspan="9">';
|
||||
print '<span class="opacitymedium">'.$langs->trans("NoRecordFound").'</span>';
|
||||
print '</td></tr>';
|
||||
}
|
||||
}
|
||||
|
||||
@ -191,6 +191,12 @@ class Mailing extends CommonObject
|
||||
public $substitutionarrayfortest;
|
||||
|
||||
|
||||
const STATUS_DRAFT = 0;
|
||||
const STATUS_VALIDATED = 1;
|
||||
const STATUS_SENTPARTIALY = 2;
|
||||
const STATUS_SENTCOMPLETELY = 3;
|
||||
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
|
||||
Loading…
Reference in New Issue
Block a user