Problem/Motivation

After updating to the latest dev version, I ran into this error.

Steps to reproduce

On views, VBO added with actions and I received the following error on listing page.

TypeError: Return value of Drupal\views_bulk_operations\Service\ViewsBulkOperationsViewData::getTotalResults() must be of the type int, null returned in Drupal\views_bulk_operations\Service\ViewsBulkOperationsViewData->getTotalResults() (line 230 of modules/contrib/views_bulk_operations/src/Service/ViewsBulkOperationsViewData.php).

Thank you for an awesome module.

CommentFileSizeAuthor
#3 vbo-totalresults-return-type-3311882.patch641 bytesa-patel

Comments

a-patel created an issue. See original summary.

a-patel’s picture

Assigned: Unassigned » a-patel
a-patel’s picture

Assigned: a-patel » Unassigned
StatusFileSize
new641 bytes
a-patel’s picture

Status: Active » Needs review

  • Graber committed b36330f on 4.1.x
    Issue #3311882: TypeError fixes in ViewsBulkOperationsViewData.
    
graber’s picture

Status: Needs review » Fixed

Good find, thank you, fixed with a different approach plus a bit more in the commit. Please check just in case.

a-patel’s picture

@Graber, thank you:)

Status: Fixed » Closed (fixed)

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