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.
Problem/Motivation
Up to version 7.x-1.5 ist was possible to name a number of possible uses of a RegCode. This issue allowed to create a RegCode to be used several times by a group of people. Main page of the module still shows the column "Max. uses" but when creating the code the field entry for "Max uses" ist missing since updating on 7.x-2.0.
Proposed resolution
Re-installation of in former times available field in the create code form..
Comments
Comment #2
TR CreditAttribution: TR commentedYes, it seems like that was broken by #2781241: Required Patch for ajax validation, Remove PDOexception for already exists code and date fields to reduce +-15. That change wasn't discussed in the issue, so I'm not sure why it was done. A quick fix is to edit regcode.module and change the word 'hidden' to 'textfield'. That word only occurs once in the file.
I'm leaving this open without a patch because I will have to figure out why that change was made and whether reverting that change will break that other issue or not.