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

Added children to fireAfterUnDeleteEvent event #12229

Closed
wants to merge 1 commit into from
Closed

Added children to fireAfterUnDeleteEvent event #12229

wants to merge 1 commit into from

Conversation

OptimusCrime
Copy link
Contributor

Fixes #5004

@OptimusCrime
Copy link
Contributor Author

Bump, this fix should be rather simple. Does not break anything, just offers extended access.

@rtripault rtripault added this to the v2.4.0-pl milestone Jan 13, 2015
@OptimusCrime
Copy link
Contributor Author

Anything to do with this?

@theboxer theboxer self-assigned this Jun 10, 2015
* @return void
*/
protected function getChildren(modResource $parent) {
$childResources = $parent->getMany('Children');
Copy link
Member

Choose a reason for hiding this comment

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

I don't think this is correct, as you'll get all children by this, not only those that were un-deleted.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, right. I'll take a look at that.

@Mark-H
Copy link
Collaborator

Mark-H commented Jul 11, 2015

Any update on making it only grab the ones that were undeleted?

@OptimusCrime
Copy link
Contributor Author

I'll fix it

@Mark-H
Copy link
Collaborator

Mark-H commented Jul 12, 2015

You're the awesomest

@rthrash
Copy link
Member

rthrash commented Feb 11, 2022

This pull request has been mentioned on MODX Community. There might be relevant details there:

https://community.modx.com/t/discrepancy-in-event-triggering-when-deleting-undeleting-resources/4952/2

@rthrash
Copy link
Member

rthrash commented Feb 11, 2022

This pull request has been mentioned on MODX Community. There might be relevant details there:

https://community.modx.com/t/discrepancy-in-event-triggering-when-deleting-undeleting-resources/4952/4

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.

None yet

7 participants