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.
On Multilingual settings (/admin/config/regional/i18n/variable) I have
Notice: Undefined index: title in variable_realm_select_variables_form() (line 32 of /var/www/--/--/sites/all/modules/variable/variable_realm/variable_realm.form.inc).
- Variable Development version: 7.x-2.x-dev updated 11 Apr 2014
- i18n Development version: 7.x-1.x-dev updated 2 Aug 2018
Comment | File | Size | Author |
---|---|---|---|
#5 | variable-3049721-5.patch | 815 bytes | jigish.addweb |
|
Comments
Comment #2
Promo-IL CreditAttribution: Promo-IL commentedComment #3
apadernoComment #4
apadernoThe code causing the notice message is the following one.
Since the group title is not described as mandatory, but just as one of the possible values returned for a group, the code should use a default value, if the title is not given.
Alternatively, the documentation should make clear the group title is required, and the code not setting it should be corrected.
I think the solution that is less disruptive for code already written is checking the title is set, and use a default value when it's not set.
Comment #5
jigish.addweb CreditAttribution: jigish.addweb at AddWeb Solution Pvt. Ltd. commented@Promo-IL, Please find a below-attached patch that resolves the notice error that added above. Kindly review it & share your feedback on the same.
Thanks
Comment #6
Dinesh18 CreditAttribution: Dinesh18 at Singapore Press Holdings commented#5 patch looks good to me. +1 to RTBC