Problem/Motivation
I get the following error uninstalling the submodule:
Error: Call to a member function delete() on null in /var/www/html/modules/contrib/gh_jobs/gh_jobs_migrate/gh_jobs_migrate.install on line 25 #0 [internal function]: gh_jobs_migrate_uninstall(false)
Steps to reproduce
- Install the
migrate_plusandmigrate_toolsmodules. - Enable the
gh_jobs_migratemodule. - Delete the
gh_departmentsvocabulary. - Uninstall the
gh_jobs_migratemodule.
Proposed resolution
In the implementation of hook_uninstall(), check for empty before deleting the configuration entities (content type and two vocabularies).
Remaining tasks
User interface changes
None
API changes
None
Data model changes
None
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | gh_jobs-3339674-2.patch | 1.57 KB | benjifisher |
Comments
Comment #2
benjifisherThe attached patch fixes the problem in my testing.
Comment #4
benjifisherBetter late than never: I committed the patch, so this issue is Fixed.