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 16.0 - parent company gets emptied when updating a third party from the card in edit mode #28269

Conversation

atm-florianm
Copy link
Contributor

FIX 16.0 parent company empty after editing a third party card

Reproducing in Dolibarr 16

  1. Create two third parties named A and B
  2. Set A as the parent company of B
  3. Go to third party card for B, edit (button "Modify"), change nothing, save

Expected: B still has a parent company (A)
Actual: B no longer has a parent company

This is because in v16.0, in edit mode, there is no form input for the parent company, but the field is still set using GETPOST('parent_company_id', 'int').

In v17, there is a form input for the parent company in edit mode, which fixes the bug. However, backporting this in v16 would arguably be a new feature.

…om the card in edit mode

This is because the field's value is set using GETPOST even when no corresponding <input> is present in the form.
@atm-florianm atm-florianm changed the base branch from develop to 16.0 February 19, 2024 10:58
@eldy eldy merged commit 2b71c26 into Dolibarr:16.0 Feb 19, 2024
5 checks passed
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.

2 participants