When creating a new role contract, the documentation for the "Days until Expiry" field says "Leave blank for no Expiration", but this actually seems not to be true. When entering nothing, the value is treated as 0 and leads to a valid expiration date, namely the next day. After all, the column "end" is NOT NULL, so it's actually not possible to have a contract that does not expire.

To overcome this, one would have to drop the NOT NULL constraint on the end column and insert a value there only if $expire>0.

CommentFileSizeAuthor
#1 role_contracts.diff3.46 KBmarinex

Comments

marinex’s picture

Status: Active » Needs review
StatusFileSize
new3.46 KB

Hi I created path, So you can try it :-)

Marinex

avpaderno’s picture

Issue summary: View changes
Status: Needs review » Closed (outdated)

I am closing this issue, since Drupal 4.x, 5.x, and 6.x are now not supported.

avpaderno’s picture

I am closing this issue, since Drupal 4.x, 5.x, and 6.x are now not supported.