Users need the capability to mark all forum topics read. The attached patch does that for all forum topics and topics within a tid (if the user is browsing a sub-forum).

Two caveats:

  1. a SELECT query, inserted into the FROM of the INSERT used to rebuild the {history} table, breaks Postgres but works fine in MySQL;
  2. The patch in #481288: Add support for INSERT INTO ... SELECT FROM ... is required for this to work;
CommentFileSizeAuthor
forum_mark_read.patch3.79 KBliam mcdermott

Comments

liam mcdermott’s picture

For reference, the issue causing this to fail in Postgres is #516090: Postgres: Indeterminate datatype errors when using arbitrary values as fields

naheemsays’s picture

Status: Postponed » Needs review
Issue tags: +Forum

Since the other patch has been committed, moving to cnr.

Status: Needs review » Needs work
Issue tags: -Forum

The last submitted patch failed testing.

Status: Needs work » Closed (outdated)

Automatically closed because Drupal 7 security and bugfix support has ended as of 5 January 2025. If the issue verifiably applies to later versions, please reopen with details and update the version.