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

Fix : To be accessible by doActions hook, $tmpthirdparty must not be redeclared after its execution #403

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bafbes
Copy link
Contributor

@bafbes bafbes commented Jan 7, 2025

Fix : To be accessible by doActions hook, $tmpthirdparty must not be redeclared after its execution

@eldy
Copy link
Member

eldy commented Jan 14, 2025

Sorru i don't understand. Why do you need to use tmpthirdparty.
It is an object that is initialized later by a fetch, why declare it before hook doAction

@eldy eldy added the discussion Further information is requested label Jan 14, 2025
@bafbes
Copy link
Contributor Author

bafbes commented Jan 14, 2025

When I use the sellyoursaasGetRegisterPageForm in register.php to get more fields about the thirdparty, in conjuction with the doActions hook to add the posted information to tmpthirdparty, I need to reuse the object tmpthirdparty and have it already created and ready to be modified as it will be saved later to database after the hook. If the object is created after the hook, it won't be useful for this matter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Further information is requested
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants