Notes |
|
(0046629)
|
hgbot
|
2012-03-21 18:23
|
|
Repository: erp/devel/pi
Changeset: 3520624041bc91cc1dafe8651d437fa17ba21720
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Wed Mar 21 18:21:23 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/3520624041bc91cc1dafe8651d437fa17ba21720 [^]
Fixes issue 20071: Now autosave will work when focus is in a date field
The ob-formitem-date.js now overwrites the blur method in order to make sure that its value is updated when the autosave is done.
---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-date.js
---
|
|
|
|
If the user moves to another tab while the focus is on a date field that has been just modified, the autosave was being done before the updateValue of the date field was executed.
The blur method of the focused field is called inside the autosave method. ob-formitem-date now overwrites the blur function, calling updateValue so that the value of the date is updated when the autosave is done. This is only done is the form is visible, it is not needed in the grid. |
|
|
|
The problem is fixed in form view, but in grid view the same problem happens. It can be easily reproduced by following the same steps, but in grid view instead of form view. |
|
|
(0046661)
|
hgbot
|
2012-03-22 18:18
|
|
Repository: erp/devel/pi
Changeset: 092c6bff0a7435105c4441c34c36a566c2506a52
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Thu Mar 22 18:18:00 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/092c6bff0a7435105c4441c34c36a566c2506a52 [^]
Fixes issue 20071: Autosave with date field focus works both in grid and form view
The previous fix only achieved to fix the issue when the change of tab was done while the date field was focus in the form view. Now it also works if it is focused in grid view.
This solution works for date fields that have callouts and for date fields that do not.
Additional changes have been made to allow to save a date multiple times in a row.
---
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
---
|
|
|
(0046689)
|
hgbot
|
2012-03-23 14:09
|
|
Repository: erp/devel/pi
Changeset: db4c8e8f034548ba09b2ec101d8227d2d83fe2b3
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Fri Mar 23 14:07:26 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/db4c8e8f034548ba09b2ec101d8227d2d83fe2b3 [^]
Related to issue 20071: Added unit test compatibility.
The changes made to fix the issue 20071 worked when the change of the date fields were done through user interaction. The unit tests call directly the setValue method of the dateTextField property of the date, scenario which had not been considered, and the date field was not being flagged as changed. This has been fixed by overwriting the setValue method of the dateTextField of the date field.
---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-date.js
---
|
|
|
(0047019)
|
hgbot
|
2012-04-01 20:34
|
|
Repository: erp/devel/pi
Changeset: 55e501dad3b7d63773f6054bffc08b08999b527d
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Wed Mar 21 18:21:23 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/55e501dad3b7d63773f6054bffc08b08999b527d [^]
Fixes issue 20071: Now autosave will work when focus is in a date field
The ob-formitem-date.js now overwrites the blur method in order to make sure that its value is updated when the autosave is done.
---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-date.js
---
|
|
|
(0047020)
|
hgbot
|
2012-04-01 20:34
|
|
Repository: erp/devel/pi
Changeset: 0a30d7aaaed2e14a9904808e7135b93665f23737
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Thu Mar 22 18:18:00 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/0a30d7aaaed2e14a9904808e7135b93665f23737 [^]
Fixes issue 20071: Autosave with date field focus works both in grid and form view
The previous fix only achieved to fix the issue when the change of tab was done while the date field was focus in the form view. Now it also works if it is focused in grid view.
This solution works for date fields that have callouts and for date fields that do not.
Additional changes have been made to allow to save a date multiple times in a row.
---
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
---
|
|
|
(0047021)
|
hgbot
|
2012-04-01 20:34
|
|
Repository: erp/devel/pi
Changeset: e022f7514b6b059c4d56890b0edec92bb39bf359
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Fri Mar 23 14:07:26 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/e022f7514b6b059c4d56890b0edec92bb39bf359 [^]
Related to issue 20071: Added unit test compatibility.
The changes made to fix the issue 20071 worked when the change of the date fields were done through user interaction. The unit tests call directly the setValue method of the dateTextField property of the date, scenario which had not been considered, and the date field was not being flagged as changed. This has been fixed by overwriting the setValue method of the dateTextField of the date field.
---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-date.js
---
|
|
|
|
|
|
|
|
|
|
|
|
|
Reopened to add relationship |
|
|
|
This regression was caused by the changeset that fixed issue 18513. |
|