Add update script to fix Maillog view after id column change

Created on 12 August 2020, over 4 years ago
Updated 21 August 2023, about 1 year ago

Problem/Motivation

After the database update maillog_update_8100 which renames the field idmaillog to id the 'Maillog overview' view does not show correct Mail IDs and the links in the Subject column lead to a 404 page not found error.

Steps to reproduce

Update to the newest dev Version and run update.php

Proposed resolution

To solve this I had to change the View 'Maillog overview'.
The first field in the view produced an error. I deleted the field and added the new field Maillog_id. I moved this new field to the top of the fields. Then I had to change the 'overwrite results' configuration of the 'Maillog: Subject' field. The Linkpath setting had to be changed from :
/maillog/details/{{idmaillog}}
to:
/admin/reports/maillog/details/{{ id }}

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇩🇪Germany Martin Mayer Germany and Philippines

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