I got some error about Undefined index Erro in Select (or other) module
Notice: Undefined index: 121 in select_or_other_taxonomy_default_value() (line 170 of /modules/contrib/select_or_other/select_or_other.field_widget.inc).
Notice: Trying to get property of non-object in select_or_other_taxonomy_default_value() (line 170 of /modules/contrib/select_or_other/select_or_other.field_widget.inc).
Notice: Undefined index: 121 in select_or_other_taxonomy_default_value() (line 170 of /modules/contrib/select_or_other/select_or_other.field_widget.inc).
Notice: Trying to get property of non-object in select_or_other_taxonomy_default_value() (line 170 of /modules/contrib/select_or_other/select_or_other.field_widget.inc).
It seems when the $term is empty, the error occurred.
I have applied a patch for this error.
Comment | File | Size | Author |
---|---|---|---|
#8 | select_or_other-empty_term-2504143-8.patch | 788 bytes | wangzb265 |
#5 | [select_or_other]-[empty_term]-[2504143]-[3].patch | 788 bytes | wangzb265 |
#1 | select_or_other_empty_term.patch | 916 bytes | wangzb265 |
Comments
Comment #1
wangzb265 CreditAttribution: wangzb265 commentedComment #2
legolasboSetting the status to "needs review". Please see https://www.drupal.org/patch/submit for more information about submitting a patch.
Comment #4
legolasboTesting failed because the patch can not be applied. Looking at the patch this is because it is formatted relative to your docroot/sites/all directory. It should be formatted relative to select_or_other's directory.
Comment #5
wangzb265 CreditAttribution: wangzb265 commentedHi legolasbo,
Thanks for the review. I have recreated the patch. This time the patch should be against the select_or_other's directory.
Comment #7
legolasboWhenever a patch fails testing, the status is automatically reset to Needs work. In order to have the new patch tested, the issue status needs to be changed to Needs review
Comment #8
wangzb265 CreditAttribution: wangzb265 commentedI just uploaded the patch and rename it with a Drupal normal patch name.
The status is Needs review now.
Thank you,
Comment #9
legolasboComment #10
legolasbo@wangzb265,
Can you describe the steps to reproduce this issue. I've been unable to reproduce the problem so far.
Comment #11
legolasboI've done a lot of work on the taxonomy integration, which is now separated into it's own sub-module. During this effort practically everything taxonomy related has been rewritten.
Since I am unable to reproduce the problem I'm closing the issue. Please reopen the issue if it is still relevant in the current codebase.