Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Follow-up to #2821602: Not working this module for drupal 8 version
Allow permanent banning to be checked on the form without entering a date in the date field for the module's d8 dev version.
Comments
Comment #2
MaskyS CreditAttribution: MaskyS at Google Code-In commentedComment #3
MaskyS CreditAttribution: MaskyS at Google Code-In commentedComment #4
MaskyS CreditAttribution: MaskyS at Google Code-In commentedComment #5
andyrigby CreditAttribution: andyrigby at Ixis - UK Drupal Support, Maintenance, Hosting and Development commentedComment #6
andyrigby CreditAttribution: andyrigby at Ixis - UK Drupal Support, Maintenance, Hosting and Development commentedThis seems possible, but there is a core issues with using #states and the datetime field, ref https://www.drupal.org/node/2419131
I managed to work around this by applying the core patch in #55 on https://www.drupal.org/node/2419131#comment-12026681 then altering the #states and #required state on the expiry field using a form alter:
Comment #7
adammaloneI'm closing this issue as it will be solved with #2936400: Massive refactoring / introduce plugins that I'm working on/reviewing currently.