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.
I found that computed fields of text or varchar types were being reset to the default size of 32 characters. I have written a patch, that I will submit once I have an issue number, that fixes this so the D7 computed text/varchar fields inherit their previous size.
Comment | File | Size | Author |
---|---|---|---|
#2 | cck-fix_computed_field_length-1627362-2.patch | 2.68 KB | fbrooks |
#1 | cck-fix_computed_field_length-1627362-2.patch | 2.68 KB | fbrooks |
Comments
Comment #1
fbrooks CreditAttribution: fbrooks commentedAttached is the patch promised in issue description.
Comment #2
fbrooks CreditAttribution: fbrooks commentedResubmitting patch. It was named for the wrong comment number. This is the same patch as above just the comment number now matches the patch name. I did not see a way to remove/re-add the attachment from the first comment.
Comment #3
fbrooks CreditAttribution: fbrooks commentedIt occurred to me that this would be better addressed in the Computed Fields module. I have submitted a patch to that project here
https://drupal.org/node/1645642
I would suggest using that instead of patching CCK.