Skip to content

Commit

Permalink
FIX set birthday alert (#32133)
Browse files Browse the repository at this point in the history
* FIX set birthday alert on contact personal data card

* also on create card

* fix travis
  • Loading branch information
fappels authored Nov 28, 2024
1 parent ff18a34 commit 3fc50f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion htdocs/contact/card.php
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@

// Note: Correct date should be completed with location to have exact GM time of birth.
$object->birthday = dol_mktime(0, 0, 0, GETPOSTINT("birthdaymonth"), GETPOSTINT("birthdayday"), GETPOSTINT("birthdayyear"));
$object->birthday_alert = GETPOSTINT("birthday_alert");
$object->birthday_alert = (GETPOST('birthday_alert', 'alpha') == "on" ? 1 : 0);

//Default language
$object->default_lang = GETPOST('default_lang');
Expand Down
2 changes: 1 addition & 1 deletion htdocs/contact/perso.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@

// Note: Correct date should be completed with location to have exact GM time of birth.
$object->birthday = dol_mktime(0, 0, 0, GETPOST("birthdaymonth"), GETPOST("birthdayday"), GETPOST("birthdayyear"));
$object->birthday_alert = GETPOSTINT("birthday_alert");
$object->birthday_alert = (GETPOST('birthday_alert', 'alpha') == "on" ? 1 : 0);

if (GETPOST('deletephoto')) {
$object->photo = '';
Expand Down

0 comments on commit 3fc50f2

Please sign in to comment.