Visitar URL original
Bugfix: Keep changelog entries after the user who made them is deleted by jayhemnani9910 · Pull Request #4684 · phpipam/phpipam · GitHub
Skip to content

Bugfix: Keep changelog entries after the user who made them is deleted - #4684

Open
jayhemnani9910 wants to merge 1 commit into
phpipam:developfrom
jayhemnani9910:fix/changelog-deleted-user
Open

jayhemnani9910 wants to merge 1 commit into
phpipam:developfrom
jayhemnani9910:fix/changelog-deleted-user

Conversation

@jayhemnani9910

Copy link
Copy Markdown

Fixes #4647

Once a user is deleted, their changes disappear from the address, subnet and section changelogs, because those queries inner join users. They now left join it, as the global changelog already does, so the entries stay with an empty user name.

Checked on MariaDB 11 with db/SCHEMA.sql: after deleting the user the old query returns 0 rows and the new one returns the entry. I did not open the pages in a browser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant