Problem/Motivation

When I go to Reviews page from the Modal, I receive the error:

The website encountered an unexpected error. Please try again later.
Error: Call to undefined method Drupal\Core\Language\Language::getTitle() in Drupal\ik_modals\Controller\ModalController->revisionOverview() (line 113 of modules/contrib/ik_modals/src/Controller/ModalController.php).

I'm using Drupal 9.2.0 version, but I notice that it's a problem in 9.1.6 and 8.9.13 versions.

Steps to reproduce

Install the module
If you use the Drupal 9.2.0 version, apply the patch from this issue and create a new Modal
Else, just create a new Modal
Go to Revisions page.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#2 3219972-2.patch1.04 KBlarisse

Comments

larisse created an issue. See original summary.

larisse’s picture

Status: Active » Needs review
StatusFileSize
new1.04 KB

I created a patch and it work for me.

larisse’s picture

Assigned: larisse » Unassigned
rosemaryreilman’s picture

Assigned: Unassigned » rosemaryreilman

Thanks @larisse! I'll hopefully be able to review this week!

rosemaryreilman’s picture

Status: Needs review » Patch (to be ported)

Thanks @larisse!! Will be porting this patch. Reviewed with latest D9 and D8!

rosemaryreilman’s picture

Status: Patch (to be ported) » Fixed

Patch applied to v. 3.0.5.

rosemaryreilman’s picture

Status: Fixed » Closed (fixed)
larisse’s picture

Thank you @rosemarystanley! =)