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.
Sometimes, when field_ui_field_edit_form is not fully initialized (in case it is 'locked' for example) a PHP notice appears:
Notice: Undefined index: instance in chosen_form_field_ui_field_edit_form_alter() (line 55 ...
Comment | File | Size | Author |
---|---|---|---|
#1 | chosen-fix-widget-type-check-1720846-0.patch | 1.39 KB | OnkelTem |
Comments
Comment #1
OnkelTem CreditAttribution: OnkelTem commentedComment #2
shadcn CreditAttribution: shadcn commentedFixed. Thanks.
Comment #4
OnkelTem CreditAttribution: OnkelTem commentedYou don't use provided patch as is, do you? :)
UPDATE Ops. You haven't committed it yet.
Comment #5
OnkelTem CreditAttribution: OnkelTem commentedComment #6
inwebsebastian CreditAttribution: inwebsebastian commentedHow can i install te patch, have to rewrite the code? chosen.module? Im from Argentina, sorry my english!
Comment #7
shadcn CreditAttribution: shadcn commented@inwebsebastian, please see http://drupal.org/patch/apply. Let we know if you need any help.
Comment #8
makokis CreditAttribution: makokis commentedthis patch #1 helped me to solve my error:
Notice: Undefined index: instance in chosen_form_field_ui_field_edit_form_alter() (line 55 ...
thanks.
Comment #9
theo_ CreditAttribution: theo_ commentedThis patch works for me too.
Comment #10
Hydra CreditAttribution: Hydra commentedAs far as I can tell, the patch has been committed, see http://drupalcode.org/project/chosen.git/commit/3f674a9
You need to update your version of chosen to the dev version to have the committed patch applied, since a new stable release has been made.