Notes |
|
|
Can be reproduced in MP12 but not in MP11 |
|
|
|
In order for this to work, the updateValue function of the date item must be called before OBViewGrid.saveEditedValues, otherwise it will fetch the old date item value.
This used to work because prior to the fix of 16502, a call to selectedItem.blur() was done before calling Super('cellEditEnd'). That fix moved the call to blur after the call to Super('cellEditEnd'), so saveEditedValues is fetching the yet-to-be-updated value. |
|
|
(0050255)
|
mtaal
|
2012-06-28 14:02
|
|
Hi Augusto,
I would add this call to
this.storeUpdatedEditorValue()
either in celleditend of in saveeditedvalues
Can you check if that helps?
gr. Martin |
|
|
(0050257)
|
hgbot
|
2012-06-28 16:32
|
|
Repository: erp/devel/pi
Changeset: e40f0602d615e083538c3651c6c2fea6c7a1379e
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Thu Jun 28 16:31:17 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/e40f0602d615e083538c3651c6c2fea6c7a1379e [^]
Fixes issue 20869: Dates are properly saved in the grid
Due to the flags the prevent OBDateItem.updateValue from being called in certain conditions, it was not being executed on ListGrid.cellEditEnd. This has been changed to ensure that the date will be updated before sending its value to the datasource.
---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-date.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
---
|
|
|
|
The only change introduced by the fix is that now there is an extra call to updateValue when calling OBViewGrid.cellEditEnd.
Test plan:
- Add a new record in the grid view. Select a date with the picker and save the row by:
*Clicking the save row button
*Using the shortcut Ctrl+S
*Clicking the up or down arrow button to move to another record
*Clicking in another tab
- Repeat the previous steps but entering the date manually, not with the picker.
- Repeat the previous steps but editing an existing record.
- After every change, check that change is actually done by using the filter. |
|
|
|
|