Skip to content

Commit

Permalink
dev/membership#10 fix incorrect validation error saying Start date mu…
Browse files Browse the repository at this point in the history
…st be the same or later than Member since

This problem is because both dates exclude time but the default setting includes it - leading to a
comparison of a datetime with a date+midnight time
  • Loading branch information
eileenmcnaughton committed Feb 28, 2019
1 parent 08cacc3 commit 47e1cfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Member/Form/Membership.php
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ public function setDefaultValues() {

//setting default join date if there is no join date
if (empty($defaults['join_date'])) {
$defaults['join_date'] = date('Y-m-d H:i:s');
$defaults['join_date'] = date('Y-m-d');
}

if (!empty($defaults['membership_end_date'])) {
Expand Down

0 comments on commit 47e1cfc

Please sign in to comment.