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

Bug on the display of date extrafields #28222

Closed
ipdeveloppement44 opened this issue Feb 16, 2024 · 1 comment
Closed

Bug on the display of date extrafields #28222

ipdeveloppement44 opened this issue Feb 16, 2024 · 1 comment
Assignees
Labels
Bug This is a bug (something does not work as expected) Event: Devcamp 2024 Nancy

Comments

@ipdeveloppement44
Copy link

ipdeveloppement44 commented Feb 16, 2024

Bug

After modifying a line on a contract, the date extrafields appear identical on all lines of the contract. This is a bug only at the display level, as the data in the database is correct.

Environment Version

18.0.3

Environment OS

Linux

Environment Web server

Apache

Environment PHP

8.1

Environment Database

MariaDB 10.3.39

Environment URL(s)

No response

Expected and actual behavior

When updating a date extrafield on an invoice, order, contract, or other entity, after submitting the modification, the display of this extrafield on all lines of the contract, for example, is identical as if it had been modified for all lines. If the page is reloaded, it is evident that the values are different, and the modification has been correctly applied only to the line that was edited.

Steps to reproduce the behavior

To replicate the issue, add a date-type extrafield to an object (contract, invoice, order, etc.). For the example of a contract, create a contract and add multiple lines to it. Validate the contract and then modify the date-type extrafield on one of the contract lines and save the modification. In terms of display, the extrafield seems to have the same value on all lines of the contract. Reloading the page reveals the correct values, and it becomes apparent that the extrafield no longer has the same value on all lines.

Attached files

Before modification:
Before modification
during modification:
during modification
after modification:
after modification
once the page is reloaded:
once the page is reloaded

@ipdeveloppement44 ipdeveloppement44 added the Bug This is a bug (something does not work as expected) label Feb 16, 2024
@fappels fappels self-assigned this Nov 15, 2024
fappels added a commit to fappels/dolibarr that referenced this issue Nov 15, 2024
eldy pushed a commit that referenced this issue Nov 15, 2024
* FIX issue #28222 Edit date extrafield diplayed on all on lines

* wrong id
@FHenry FHenry closed this as completed Nov 17, 2024
@FHenry
Copy link
Member

FHenry commented Nov 17, 2024

fix by #31914

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This is a bug (something does not work as expected) Event: Devcamp 2024 Nancy
Projects
None yet
Development

No branches or pull requests

3 participants