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

Bugfix Model after event data #2359

Merged
merged 2 commits into from
Oct 24, 2019

Conversation

MGatner
Copy link
Member

@MGatner MGatner commented Oct 22, 2019

Description
I messed up on #2332 and used $data for the after trigger not remembering that the before triggers return a nested version of the data.

This PR fixes the issue by passing the data property instead of array, and renames all uses of event-related data to $eventData to differentiate it from the actual $data/$row.

Checklist:

  • Securely signed commits
  • Component(s) with PHPdocs
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

@MGatner MGatner merged commit a424b3e into codeigniter4:develop Oct 24, 2019
@MGatner MGatner deleted the model-trigger-nesting branch October 24, 2019 19:54
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