Repository navigation
Poduct`s «extendPages» integration migration from v1.0 to v1.5 #2787
waspar
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi!
The current v1.5 release broke a very convenient old integration.
In short, I created a separate page for editing product production time, but it no longer works because its data gets overwritten by the main edit-page.
I cannot find a way to replicate this integration it in the current version: the main product editing page completely wipes out attributes belonging to other groups (i.e., it deletes attribute values that are not displayed on the main page).
In the previous version (1.0), these integration classes did not include mutateFormDataBeforeSave methods, as everything worked perfectly well without them. All I needed was to display a list of fields (attributes) on the page.
Either I am missing something important, or I have encountered an insurmountable limitation.
In my view, a better approach for the form’s behavior would be: "save everything that is submitted, but leave untouched anything that was not submitted."
[app/Lunar/Pages/Product/EditProductProduction.php]
[app/Lunar/Extensions/Resources/ProductResourceExtension.php]
[app/Providers/AppServiceProvider.php]
How can I create a separate page for save only selected (specific) product attributes without appearing on the main product` edit-page and without data loss in the current version?
Thanks!
All reactions