Error saving polls after translation added when used in conjunction with conflict module

Created on 22 November 2021, over 3 years ago
Updated 8 April 2025, 5 days ago

Problem/Motivation

This issue occurs when conflict module (8.x-2.0-alpha2) is enabled (on Drupal 9.1.14). When a poll has been translated, trying to edit and save the poll gives an error:

Error: Call to undefined method Drupal\poll\Entity\Poll::getChangedTime() in Drupal\conflict\Entity\ContentEntityConflictHandler->autoMergeNonEditedTranslations() (line 399 of /nrc/apps/www/myzone/web/modules/contrib/conflict/src/Entity/ContentEntityConflictHandler.php)

Steps to reproduce

Enable conflict module.
Create a poll.
Translate the poll.
Edit the original poll (or its translation).
Make a change and attempt to save.

Proposed resolution

Poll entity class needs updating to support and/or not break when conflict code runs.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Postponed

Version

1.0

Component

User interface

Created by

🇨🇦Canada classiccut

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024