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.
Node with titles 255 characters long can cause a fatal SQL error in og_default_menu_links module when the link_title is greater that 255 chars.
Comment | File | Size | Author |
---|---|---|---|
#6 | og_menu-max_len_on_link_title-2219071-6.patch | 1.15 KB | cs_shadow |
#1 | maximum_len-2219071-1.patch | 1.06 KB | grasmash |
Comments
Comment #1
grasmash CreditAttribution: grasmash commentedComment #2
rv0 CreditAttribution: rv0 commentedThanks for the patch.
Why "token_replace($default_link['label'], array('node' => $entity))" ?
Also, I think mb_substr is more appropriate
Comment #3
grasmash CreditAttribution: grasmash commentedAdding token_replace allows tokens to be used in the menu titles. This is particularly useful if you'd like a default link the form of "[og-title] Home", or the like.
Comment #4
rv0 CreditAttribution: rv0 commentedWell, I figured that, but it seemed kinda sneaky putting it there without a mention ;)
Comment #5
grasmash CreditAttribution: grasmash commentedYes, I suppose it was. I also suppose that we should add a dependency on the token module as a result.
Comment #6
cs_shadow CreditAttribution: cs_shadow commentedModifying patch in #1 to include explanation of what
token_replace
is doing and added a dependency on 'token' module sincetoken_replace
is being used at a couple of places.Comment #7
rv0 CreditAttribution: rv0 commentedCommitted (changed dependency to correct module .info file and added multibyte support)