Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0019680 | Openbravo ERP | A. Platform | public | 2012-02-07 12:42 | 2012-03-02 15:35 |
|
Reporter | maite | |
Assigned To | alostale | |
Priority | urgent | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | 3.0MP9 | Fixed in Version | 3.0MP9 | |
Merge Request Status | |
Review Assigned To | |
OBNetwork customer | OBPS |
Web browser | |
Modules | Core |
Support ticket | 14184 |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0019680: Once "Save" button is pressed, it should be disabled in order to avoid duplications |
Description | Once "Save" button is pressed, it should be disabled in order to avoid duplications when network speed is slow or machine has performance problems |
Steps To Reproduce | 1. access slow environment
2. create Sales Invoice header and Save
3. add Sales Invoice line and press Save button several times
4. realize that sales invoice line has been duplicated |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | defect | 0019959 | 3.0MP10 | closed | alostale | In old view (2.50 view, in 3.0 version) once "Save" button is pressed, it should be disabled in order to avoid duplications |
|
Attached Files | slow-add.diff (843) 2012-02-07 15:03 https://issues.openbravo.com/file_download.php?file_id=4959&type=bug |
|
Issue History |
Date Modified | Username | Field | Change |
2012-02-07 12:42 | maite | New Issue | |
2012-02-07 12:42 | maite | Assigned To | => alostale |
2012-02-07 12:42 | maite | Modules | => Core |
2012-02-07 12:42 | maite | OBNetwork customer | => Yes |
2012-02-07 12:42 | maite | Support ticket | => 14184 |
2012-02-07 12:43 | maite | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=3140#r3140 |
2012-02-07 12:43 | maite | Issue Monitored: networkb | |
2012-02-07 12:43 | maite | Target Version | => 3.0MP9 |
2012-02-07 15:03 | alostale | File Added: slow-add.diff | |
2012-02-07 15:04 | alostale | Note Added: 0044907 | |
2012-02-07 16:27 | hgbot | Checkin | |
2012-02-07 16:27 | hgbot | Note Added: 0044909 | |
2012-02-07 16:27 | hgbot | Status | new => resolved |
2012-02-07 16:27 | hgbot | Resolution | open => fixed |
2012-02-07 16:27 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/4182555aaeccf10dc21f416790dcbcbcf789bcc6 [^] |
2012-02-07 16:38 | alostale | Note Added: 0044910 | |
2012-02-07 19:23 | maite | Note Added: 0044922 | |
2012-02-07 19:23 | maite | Status | resolved => closed |
2012-02-08 18:19 | alostale | Note Added: 0044939 | |
2012-02-08 18:19 | alostale | Status | closed => new |
2012-02-08 18:19 | alostale | Resolution | fixed => open |
2012-02-08 18:22 | hgbot | Checkin | |
2012-02-08 18:22 | hgbot | Note Added: 0044940 | |
2012-02-08 18:22 | hgbot | Status | new => resolved |
2012-02-08 18:22 | hgbot | Resolution | open => fixed |
2012-02-08 18:22 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/devel/pi/rev/4182555aaeccf10dc21f416790dcbcbcf789bcc6 [^] => http://code.openbravo.com/erp/devel/pi/rev/7beead5709c73f571063ba8c6769f37a0a95ea0c [^] |
2012-02-15 13:36 | dbaz | Note Added: 0045149 | |
2012-02-15 13:36 | dbaz | Status | resolved => closed |
2012-02-15 13:36 | dbaz | Fixed in Version | => 3.0MP9 |
2012-03-02 15:35 | hudsonbot | Checkin | |
2012-03-02 15:35 | hudsonbot | Note Added: 0045769 | |
2012-03-02 15:35 | hudsonbot | Checkin | |
2012-03-02 15:35 | hudsonbot | Note Added: 0045778 | |
2012-03-06 13:48 | jonalegriaesarte | Relationship added | related to 0019959 |
Notes |
|
|
Can be reproduced in a normal env, applying the attached diff (slow-add.diff), creating new line in form view and clicking save twice in less than 4sec. |
|
|
(0044909)
|
hgbot
|
2012-02-07 16:27
|
|
Repository: erp/devel/pi
Changeset: 4182555aaeccf10dc21f416790dcbcbcf789bcc6
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Tue Feb 07 16:22:27 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/4182555aaeccf10dc21f416790dcbcbcf789bcc6 [^]
fixed bug 19680: Saving new record now disables save button
---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view-datasource.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/toolbar/ob-toolbar.js
---
|
|
|
|
Provided solution shows disables save button and shows spinning button after clicking on it till dataset response arrives.
It affects a key component in the toolbar, but risk is reduced as the follow test cases cover all cases:
-In the following situations, after click on save, spinning icon should be displayed in the save button and save and close should be diabled till the operation finishes, while in this situation, clicking the button again, should not have any effect:
* New on form, click save
* New on form, click save and close
* New on grid, click on toolbar save (note also save button in grid is spinning and not clickable)
* New on grid, click on save left side of record
* Edit on form, click save
* Edit on form, click save and close
* Edit on grid, click on toolbar save (note also save button in grid is spinning and not clickable)
* Edit on grid, click on save left side of record
-Other events in toolbar that do dataset actions, do not affect save buttons status
* Refresh
* Delete
* Write a new note
* Attach file |
|
|
(0044922)
|
maite
|
2012-02-07 19:23
|
|
|
|
|
Not working fine if the network is fast enough (less than 200ms to perform action and receive response) creating a new record in form view and saving makes the spinning icon not to disappear from save button. |
|
|
(0044940)
|
hgbot
|
2012-02-08 18:22
|
|
Repository: erp/devel/pi
Changeset: 7beead5709c73f571063ba8c6769f37a0a95ea0c
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Wed Feb 08 18:21:21 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/7beead5709c73f571063ba8c6769f37a0a95ea0c [^]
fixed bug 19680: Fixed synchronization for showing spinning icon.
Fixed the case of new in form in a fast enough network: spinning icon was not
cleared after save.
---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view-datasource.js
---
|
|
|
(0045149)
|
dbaz
|
2012-02-15 13:36
|
|
Reviewed @ changeset 15482 - b84612a26a3 |
|
|
|
|
|
|
|