';
+ print '\n";
print "\n";
diff --git a/htdocs/adherents/subscription.php b/htdocs/adherents/subscription.php
index e26db90c4ff..1e83a9c6c19 100644
--- a/htdocs/adherents/subscription.php
+++ b/htdocs/adherents/subscription.php
@@ -499,7 +499,7 @@ if ($rowid > 0) {
// Login
if (empty($conf->global->ADHERENT_LOGIN_NOT_REQUIRED)) {
- print '| '.$langs->trans("Login").' / '.$langs->trans("Id").' | '.$object->login.' |
';
+ print '| '.$langs->trans("Login").' / '.$langs->trans("Id").' | '.dol_escape_htmltag($object->login).' |
';
}
// Type
@@ -510,25 +510,24 @@ if ($rowid > 0) {
print '';
// Company
- print '| '.$langs->trans("Company").' | '.$object->company.' |
';
+ print '| '.$langs->trans("Company").' | '.dol_escape_htmltag($object->company).' |
';
// Civility
- print '| '.$langs->trans("UserTitle").' | '.$object->getCivilityLabel().' | ';
+ print '
| '.$langs->trans("UserTitle").' | '.$object->getCivilityLabel().' | ';
print '
';
// Password
if (empty($conf->global->ADHERENT_LOGIN_NOT_REQUIRED)) {
- print '| '.$langs->trans("Password").' | '.preg_replace('/./i', '*', $object->pass);
+ print ' |
| '.$langs->trans("Password").' | ';
if ($object->pass) {
print preg_replace('/./i', '*', $object->pass);
} else {
if ($user->admin) {
- print $langs->trans("Crypted").': '.$object->pass_indatabase_crypted;
- } else {
- print $langs->trans("Hidden");
+ print '';
}
+ print ''.$langs->trans("Hidden").'';
}
- if ((!empty($object->pass) || !empty($object->pass_crypted)) && empty($object->user_id)) {
+ if (!empty($object->pass_indatabase) && empty($object->user_id)) { // Show warning only for old password still in clear (does not happen anymore)
$langs->load("errors");
$htmltext = $langs->trans("WarningPasswordSetWithNoAccount");
print ' '.$form->textwithpicto('', $htmltext, 1, 'warning');
@@ -544,15 +543,17 @@ if ($rowid > 0) {
print " ".img_warning($langs->trans("Late"));
}
} else {
- if (!$adht->subscription) {
+ if ($object->need_subscription == 0) {
+ print $langs->trans("SubscriptionNotNeeded");
+ } elseif (!$adht->subscription) {
print $langs->trans("SubscriptionNotRecorded");
- if ($object->statut > 0) {
- print " ".img_warning($langs->trans("Late")); // Display a delay picto only if it is not a draft and is not canceled
+ if (Adherent::STATUS_VALIDATED == $object->statut) {
+ print " ".img_warning($langs->trans("Late")); // displays delay Pictogram only if not a draft, not excluded and not resiliated
}
} else {
print $langs->trans("SubscriptionNotReceived");
- if ($object->statut > 0) {
- print " ".img_warning($langs->trans("Late")); // Display a delay picto only if it is not a draft and is not canceled
+ if (Adherent::STATUS_VALIDATED == $object->statut) {
+ print " ".img_warning($langs->trans("Late")); // displays delay Pictogram only if not a draft, not excluded and not resiliated
}
}
}
@@ -561,18 +562,13 @@ if ($rowid > 0) {
print ' |