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++;
|
$i++;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ($object->statut < 2) {
|
if ($object->statut < $object::STATUS_SENTPARTIALY) {
|
||||||
print '<tr><td colspan="9" class="opacitymedium">';
|
print '<tr><td colspan="9">';
|
||||||
print $langs->trans("NoTargetYet");
|
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>';
|
print '</td></tr>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -191,6 +191,12 @@ class Mailing extends CommonObject
|
|||||||
public $substitutionarrayfortest;
|
public $substitutionarrayfortest;
|
||||||
|
|
||||||
|
|
||||||
|
const STATUS_DRAFT = 0;
|
||||||
|
const STATUS_VALIDATED = 1;
|
||||||
|
const STATUS_SENTPARTIALY = 2;
|
||||||
|
const STATUS_SENTCOMPLETELY = 3;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user