Just wanted to enable taxonomy filter with hierarchy and got the error:

An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /d8/admin/structure/views/ajax/config-item/frontpage/page_1/filter/tid
StatusText: OK
ResponseText: Fatal error: Class 'Drupal\taxonomy\Plugin\views\filter\stdClass' not found in /home/www/drupal/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/views/filter/TaxonomyIndexTid.php on line 146

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Chi’s picture

Status: Active » Needs review
FileSize
572 bytes
739 bytes
Chi’s picture

FileSize
1.03 KB

Also wondering why do we need to use stdClass here. It's not documented in Form API.

dawehner’s picture

Status: Needs review » Needs work
Issue tags: +Needs tests, +VDC

The point here is to leverage the hierachy, ... that's what the stdclass was used for.

damiankloip’s picture

Status: Needs work » Needs review
FileSize
748 bytes

Yeah, I guess really we want the fix to just be this.

Status: Needs review » Needs work

The last submitted patch, 1823204-4.patch, failed testing.

dawehner’s picture

Perfect, now just someone has to step up and write tests. Good luck :)

dawehner’s picture

Perfect, now just someone has to step up and write tests. Good luck :)

dawehner’s picture

Status: Needs work » Needs review

#4: 1823204-4.patch queued for re-testing.

dawehner’s picture

Issue tags: -Needs tests
FileSize
7.63 KB
8.36 KB

Here are some tests for the UI.

Status: Needs review » Needs work

The last submitted patch, vdc-1823204-FAIL.patch, failed testing.

dawehner’s picture

Status: Needs work » Needs review

Back to needs review.

Chi’s picture

Status: Needs review » Reviewed & tested by the community

It works for me.

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed a16c164 and pushed to 8.x. Thanks!

Automatically closed -- issue fixed for 2 weeks with no activity.