Going to admin/content and filtering the listing by any language results in a fatal SQL error. The generated SQL query still uses the column name "language" , but it has been changed some time ago to "langcode". The following patch uses "langcode" as it should.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | nodes_admin_language_filter-1635394-8.patch | 3.17 KB | webflo |
| #7 | filtering_by_language.patch | 3.78 KB | droplet |
| #4 | 1635394-test-500-errors.patch | 759 bytes | djdevin |
| nodes_admin_language_filter.patch | 1.51 KB | floretan |
Comments
Comment #1
marcingy commentedLooks good
Comment #2
chx commentedWe are clearly missing some testing here if Drupal can fatal out w/o the testbot screaming bloody murder.
Comment #3
djdevinComment #4
djdevinWe are already failing webtest requests that are empty (in WebTestBase::curlExec), does it make sense that we should also be failing responses with a status code of 500?
Maybe there should be something in TestBase::run as well?
Comment #5
djdevinComment #7
droplet commentedSeems like @djdevin uploaded a wrong patch.
Attached the patch with fixes and tests.
** extra language_negotiation_include() fix: #1789750: Fatal error: Call to undefined function language_negotiation_url_prefixes_update()
Comment #8
webflo commentedRe-rolled and
language_negotiation_include()in language_save is not necessary anymore.Comment #9
carsten müller commentedTest passed on my local environment also.
Testing the content interface with some content and filtering by language worked fine
Comment #10
webflo commentedMarked as duplicate: #1830880: Content list is giving error after filtering with a Language
Comment #11
aspilicious commentedGreat
Comment #12
catchLooks good. Committed/pushed to 8.x.