fix: add parent property to avoid dynamic property #109
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Adds "parent" property to avoid dynamic property creation.
This solves #106
Details
We were assigning a value to a property called "parent"
openedx-wordpress-ecommerce/includes/model/class-openedx-commerce-enrollment.php
Line 58 in e0e636e
but it wasn't defined before.
In this PR, I only define a property called "parent" to avoid the dynamic property creation.
And also update the tested up version in the docs.
Testing instructions
Live link: https://openecommtest.s6-tastewp.com/wp-admin/
I already uploaded the plugin with this version.
Credentials
adminP^C)W)DOrPa&^KYsOvY8x2P3
Or you can use this branch to run
make release, and compress theopenedx-commercefolder as a ZIP file. Use that as a plugin to upload to your WordPress environment, and you can also upload to the test live site.Everything should work as expected.
Additional information
Before the PR

https://github.com/openedx/openedx-wordpress-ecommerce/actions/runs/12168160490/job/34157245826?pr=104
After the PR

https://github.com/openedx/openedx-wordpress-ecommerce/actions/runs/13681127038/job/38253515240?pr=109
Checklist for Merge