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.
We are having an issue where the Drupal devel module's generate feature does not adhere to cck custom fields max length settings. Is this normal, is there a workaround for this?
Using the latest Drupal Devel module and Drupal 6.
Comment | File | Size | Author |
---|---|---|---|
#2 | generate_ignores_cck_limits-534166-2.patch | 473 bytes | AndyF |
Comments
Comment #1
moshe weitzman CreditAttribution: moshe weitzman commentedComment #2
AndyF CreditAttribution: AndyF commentedI can't believe this bug's been around this long without someone spotting it, but I have exactly this issue, and it seems to be down to the logic in content.devel.inc. If $max is 0 (one value) it works fine, if $max is 1 (unlimited) it works fine, if it's another fixed number however it'll iterate once too many times.
Patch attached. As I say, I'm very confused as to how this could've escaped the gazillions of other developers using this, so I might've missed something :)
Thanks,
Andy
Comment #3
moshe weitzman CreditAttribution: moshe weitzman commentedDoes D7 need similar fix?
Comment #4
AndyF CreditAttribution: AndyF commentedJust gave it a quick go, and it appears that D7's fine. Btw, I realise now that I hijacked/misread this unrelated issue. The OP was on about a field's max length, and I'm referring to the number of fields generated.
Comment #5
AndyF CreditAttribution: AndyF commentedPatch isn't committed.