Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pass column subfields through guessing functions #5691

Merged
merged 4 commits into from
Oct 15, 2024

Conversation

pxpm
Copy link
Contributor

@pxpm pxpm commented Oct 15, 2024

WHY

fixes: https://github.com/Laravel-Backpack/PRO/issues/287

BEFORE - What was wrong? What was happening before this PR?

As reported, our "fluent column" definition was not passing the subfields through the guessing functions. That made the column work when defined as array, and break when defined in a fluent syntax.

AFTER - What is happening after this PR?

It passes through the same guessing functions as the array definition.

HOW

How did you achieve that, in technical terms?

Added the subfields() method to CrudColumn, similar to how we have in CrudField.

Is it a breaking change?

It shouldn't.

@pxpm pxpm merged commit ac35070 into main Oct 15, 2024
8 checks passed
@pxpm pxpm deleted the pass-column-subfields-through-guessing-functions branch October 15, 2024 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant