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

Problem with "ondelete_callback" #63

Closed
baumannsven opened this issue Mar 16, 2015 · 2 comments
Closed

Problem with "ondelete_callback" #63

baumannsven opened this issue Mar 16, 2015 · 2 comments

Comments

@baumannsven
Copy link
Contributor

Hi,
a question regarding the problem of the extentions haste and efg.

If these two modules are installed you cannot delete form datas within efg forms.
The reason therefore ist that ondelete_callback 'Haste\Model\Relations', 'cleanRelatedRecords' is called.
To fix this I wanted to ask whether you can do the following step:
Can you insert this code https://github.com/codefog/contao-haste/blob/master/library/Haste/Model/Relations.php#L94
into this if loop https://github.com/codefog/contao-haste/blob/master/library/Haste/Model/Relations.php#L89?

Thanks Sven

@Toflar
Copy link
Collaborator

Toflar commented Mar 16, 2015

Why? Can you elaborate a bit more? The callback is fine where it is, it is looping over all tables, not only the current one.

@baumannsven
Copy link
Contributor Author

You can close this ticket. I found the problem is near efg as haste.

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

No branches or pull requests

3 participants