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.
Faced problem on multilingual site where protected_node module is used. Possible solution is to replace key 'und' with constant LANGUAGE_NONE
Comment | File | Size | Author |
---|---|---|---|
#5 | protected_node-use_language_none_instead_of_und-2484783-5.patch | 6.96 KB | Grimreaper |
#1 | replace_und_with_language_none-2484783-1.patch | 6.38 KB | uladzimir.karol |
Comments
Comment #1
uladzimir.karol CreditAttribution: uladzimir.karol commentedHere is my quick fix 'und'->LANGUAGE_NONE for protected_node
Comment #2
GrimreaperThanks.
Changing in needs review to start the automated tests.
Comment #4
GrimreaperHello,
I made the modifications in your patch myself and there is no problem.
But could you please give the steps to reproduce the bug?
Because the modifications are made only in test files.
Comment #5
GrimreaperUploading an applicable patch.
Comment #7
GrimreaperHello,
This is now merged as it is a good practice to use the constant LANGUAGE_NONE instead of 'und'. I changed the issue metadata and title bucause it was not a bug. I can't find the documentation page about this constant.
Here is the documentation page about how to provide a patch because your patch was not applyable: https://www.drupal.org/node/707484
Thanks for helping