Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0048341 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] 07. Sales management | major | always | 2021-12-30 12:57 | 2022-01-26 07:30 | |||
Reporter | idiez | View Status | public | |||||
Assigned To | AugustoMauch | |||||||
Priority | high | Resolution | fixed | Fixed in Version | PR22Q2 | |||
Status | closed | Fix in branch | Fixed in SCM revision | |||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | 3.0PR19Q4.4 | SCM revision | ||||||
Merge Request Status | approved | |||||||
Review Assigned To | ||||||||
OBNetwork customer | OBPS | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Support ticket | 36028 | |||||||
Regression level | ||||||||
Regression date | 2022-01-10 | |||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0048341: Edit buttons on sales order lines disappear after editing | |||||||
Description | Edit buttons on sales order lines disappear after editing in the version 19Q4 and 21Q4 | |||||||
Steps To Reproduce | 1) Go to the "Sales order" window 2) Clear the filter 3) Add the column "Order Reference" in grid view 4) Edit the first record in grid view, enter a value in the Order Reference view and click on the next record. Note that the Edit/Create buttons on the left side of the row that was just edited have dissappeared Note that if instead of clicking on the next record we use the ARROW DOWN key as a shortcut, the issue is not reproduced | |||||||
Tags | No tags attached. | |||||||
Attached Files | ![]() | |||||||
![]() |
|
![]() |
|
(0134082) vmromanos (viewer) 2021-12-31 09:16 |
Hi Platform, I'm able to reproduce it in livebuilds PI. It seems a problem in the grid's autosave when editing a field and moving to another record. |
(0134543) hgbot (developer) 2022-01-25 09:50 |
Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/512 [^] |
(0134563) hgbot (developer) 2022-01-26 07:30 |
Merge request merged: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/512 [^] |
(0134564) hgbot (developer) 2022-01-26 07:30 |
Directly closing issue as related merge request is already approved. Repository: https://gitlab.com/openbravo/product/openbravo [^] Changeset: 45dda6f14808c5ec84f2b4efd24eec21b1318c71 Author: Augusto Mauch <augusto.mauch@openbravo.com> Date: 26-01-2022 06:30:12 URL: https://gitlab.com/openbravo/product/openbravo/-/commit/45dda6f14808c5ec84f2b4efd24eec21b1318c71 [^] Fixes ISSUE-48341: Grid edit buttons disappear in some windows The problem was only reproducible in grids where canvas field columns were displayed (i.e. Sales Order displays two by default, Delivery Status and Invoice Status). Those fields are managed by Smartclient as embeddedComponents and the area that contains the two buttons that disappear (OBGridButtonsComponent) is an embeddedComponent too. Whenever the user moves to a different row those components are recreated/recomputed (grid buttons here [1], canvas fields here [2]). Canvas fields are recomputed maintaining the row number they belong too, while grid buttons are recreated without a record number and rely on this smartclient function [3] to be assigned one. For that function to be executed, the first of the embedded components must have a null row number, so if there is a canvas field that happens to be the first component in the embeddedComponents array, the grid buttons component will not be assigned a row and thus will not be displayed. Programatically assigning a row number on [1] when recomputing the grid buttons component does not work because [3] needs to be invoked (it sets a smartclient property that is not visible), so to fix the problem I am ensuring that when canvas fields are recomputed in [2], its row number is unset [1] https://gitlab.com/openbravo/product/openbravo/-/blob/20904b11ad82f3cb37e2e3bce67127dedbf8d477/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js\#L4963 [^] [2] https://gitlab.com/openbravo/product/openbravo/-/blob/20904b11ad82f3cb37e2e3bce67127dedbf8d477/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-grid.js\#L434 [^] [3] https://gitlab.com/openbravo/tools/platform/org.openbravo.userinterface.smartclient.dev/-/blob/6b4f3f70cc3241de7eae4eba2f5e918586844729/web/org.openbravo.userinterface.smartclient/isomorphic/client/widgets/GridRenderer.js\#L2599 [^] --- M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-grid.js --- |
![]() |
|||
Date Modified | Username | Field | Change |
2021-12-30 12:57 | idiez | New Issue | |
2021-12-30 12:57 | idiez | Assigned To | => Triage Finance |
2021-12-30 12:57 | idiez | File Added: bug19.4.mp4 | |
2021-12-30 12:57 | idiez | OBNetwork customer | => OBPS |
2021-12-30 12:57 | idiez | Modules | => Core |
2021-12-30 12:57 | idiez | Support ticket | => 36028 |
2021-12-30 12:57 | idiez | Regression date | => 2022-01-10 |
2021-12-30 12:57 | idiez | Triggers an Emergency Pack | => No |
2021-12-31 09:14 | vmromanos | Assigned To | Triage Finance => platform |
2021-12-31 09:16 | vmromanos | Note Added: 0134082 | |
2022-01-03 10:40 | AugustoMauch | Steps to Reproduce Updated | View Revisions |
2022-01-03 11:07 | AugustoMauch | Assigned To | platform => AugustoMauch |
2022-01-03 11:08 | AugustoMauch | Status | new => scheduled |
2022-01-25 09:50 | hgbot | Merge Request Status | => open |
2022-01-25 09:50 | hgbot | Note Added: 0134543 | |
2022-01-26 07:30 | hgbot | Merge Request Status | open => approved |
2022-01-26 07:30 | hgbot | Resolution | open => fixed |
2022-01-26 07:30 | hgbot | Status | scheduled => closed |
2022-01-26 07:30 | hgbot | Note Added: 0134563 | |
2022-01-26 07:30 | hgbot | Fixed in Version | => PR22Q2 |
2022-01-26 07:30 | hgbot | Note Added: 0134564 |
Copyright © 2000 - 2009 MantisBT Group |