Hello,
When I go to admin/reports/fields I got some notice.
Notice : Undefined index: commerce_discount dans _field_ui_bundle_admin_path() (ligne 325 dans /modules/field_ui/field_ui.module).
Notice : Undefined index: commerce_discount dans field_ui_fields_list() (ligne 35 dans /modules/field_ui/field_ui.admin.inc).
Commerce discount is uninstalled because I had some problems with it and I would like to reinstall it. It seems it doesn't uninstall well and that some fields are still there.
PS : I uninstalled the module (not just disabled), run update.php, cleared all cache and run cron.
Comments
Comment #1
dr.osd commentedSame problem for version 7.x-1.0-alpha4
On fields list page after disable and uninstalling module I have massages:
Notice: Undefined index: commerce_discount in _field_ui_bundle_admin_path() (line 325 of /www/modules/field_ui/field_ui.module).
Notice: Undefined index: commerce_discount in field_ui_fields_list() (line 35 of /www/modules/field_ui/field_ui.admin.inc).
Notice: Undefined index: commerce_discount in _field_ui_bundle_admin_path() (line 325 of /www/modules/field_ui/field_ui.module).
Notice: Undefined index: commerce_discount in field_ui_fields_list() (line 35 of /www/modules/field_ui/field_ui.admin.inc).
Notice: Undefined index: product_discount in _field_ui_bundle_admin_path() (line 325 of /www/modules/field_ui/field_ui.module).
Notice: Undefined index: product_discount in field_ui_fields_list() (line 35 of /www/modules/field_ui/field_ui.admin.inc).
Notice: Undefined index: product_discount in _field_ui_bundle_admin_path() (line 325 of /www/modules/field_ui/field_ui.module).
Notice: Undefined index: product_discount in field_ui_fields_list() (line 35 of /www/modules/field_ui/field_ui.admin.inc).
Notice: Undefined index: product_discount in _field_ui_bundle_admin_path() (line 325 of /www/modules/field_ui/field_ui.module).
Notice: Undefined index: product_discount in field_ui_fields_list() (line 35 of /www/modules/field_ui/field_ui.admin.inc).
Notice: Undefined index: product_discount in _field_ui_bundle_admin_path() (line 325 of /www/modules/field_ui/field_ui.module).
Notice: Undefined index: product_discount in field_ui_fields_list() (line 35 of /www/modules/field_ui/field_ui.admin.inc).
Comment #2
lukasss commentedI have this problem!
Comment #3
joelpittetYeah this is still a problem. Here's a patch that should work, it fixes a couple other related issues but the main issue here is that the two custom line item types are not deleted.
Comment #4
joshtaylor commentedPatch works well, removes the error. Attached are the before / after screenshots.
Without:

With:

Comment #6
joelpittetThank you @joshtaylor for the screenshots. Committed and pushed to -dev branch.
Comment #8
mglaman;) Test bot got fixed, so it's running queued patches.