When adding/editing a role assignment feature, the absolute expiration date does not default to the correct date.

Drupal creates the select elements with the day/month values without a 0 prefix where as the uc_roles module uses the 0 prefix when setting a default value. Attached a patch to use the non-prefix formatting.

Comments

tr’s picture

Status: Active » Needs review

You should set the status to "Needs review" when you supply a patch so others know there is a solution waiting to be reviewed.

Status: Needs review » Needs work

The last submitted patch, uc_roles_expiration_date.patch, failed testing.

tr’s picture

In this case the testbot is right - patch was rolled from the uc_roles directory rather than the ubercart directory.

mjpa’s picture

Version: 6.x-2.4 » 6.x-2.x-dev
Status: Needs work » Needs review
StatusFileSize
new1.94 KB

Re-roled the patch against -dev using the git method.

tr’s picture

Patch looks good. testbot will still probably fail, but this time that will be because the testbot is having problems rather than because of the patch.

longwave’s picture

Version: 6.x-2.x-dev » 7.x-3.x-dev
Status: Needs review » Patch (to be ported)

Committed, needs porting to 7.x.

longwave’s picture

Status: Patch (to be ported) » Fixed

Committed to 7.x.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.