Skip to content

Conversation

@Sztig
Copy link
Contributor

@Sztig Sztig commented Dec 10, 2025

🎫 Issue IBX-11038

Description:

This is a regression coming from #1697
author in VersionInfo must be nullable so we can still display content of some deleted user.
I have also reverted in AuthorsTab retrieving ownerId to be directly accessed from contentInfo instead of quering the owner as it might be no longer in the database.

@sonarqubecloud
Copy link

{
$parameters['creator'] = null;
$ownerId = $contentInfo->getOwner()->getUserId();
$ownerId = $contentInfo->ownerId;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you figure out why is it different than getOwner()->getUserId()? We avoid magic whenever possible and that was also the intention behind this change. //POV ping @alongosz.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No I didn't dig too deep, just saw we have used $contentInfo->ownerId and we don't have a getter for the ownerId either so I have just reverted to this.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This supposed to be an equivalent, that's why I ask. I will let Andrew give his cents though.

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.

5 participants