Skip to content

Resolved #4847 where the Entry Manager could become unusable depending on Column configuration#4848

Merged
TomJaeger merged 4 commits intoExpressionEngine:7.devfrom
mithra62:fix/7.x/ensure-sortable-em-cols
Jun 16, 2025
Merged

Resolved #4847 where the Entry Manager could become unusable depending on Column configuration#4848
TomJaeger merged 4 commits intoExpressionEngine:7.devfrom
mithra62:fix/7.x/ensure-sortable-em-cols

Conversation

@eric-lamb62
Copy link
Contributor

Resolves #4847 Where the Entry Manager could become unusable depending on Column configuration

@intoeetive intoeetive changed the title Fix/7.x/ensure sortable em cols Resolved #4847 where the Entry Manager could become unusable depending on Column configuration May 18, 2025
@intoeetive intoeetive added this to the 7.5.13 milestone May 19, 2025
@TomJaeger TomJaeger requested a review from intoeetive June 4, 2025 20:17
Copy link
Contributor

@intoeetive intoeetive left a comment

Choose a reason for hiding this comment

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

@mithra62 do we really need instanceof check here? It looks like isset is sufficient as we always get columns from ColumnFactory

@eric-lamb62
Copy link
Contributor Author

@intoeetive I wouldn't say "need", as the $columns array is defined in the method, and it's clearly created through a EntryManager\ColumnFactory. But as that conditional contains logic that does require the existence of said variable and it being an instance of the Column abstract, ensuring both makes sense to my mind.

That said, that conditional being so strict is 100% a stylistic choice more than an immediate concern. More a "provides additional reliability so why not?" choice on my part.

@TomJaeger TomJaeger merged commit 488d0e4 into ExpressionEngine:7.dev Jun 16, 2025
22 checks passed
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.

Entry Manager and Column Expectations

4 participants