Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0034716
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformmajoralways2016-12-12 13:052016-12-16 18:39
ReporterumartirenaView Statuspublic 
Assigned Tocaristu 
PriorityurgentResolutionfixedFixed in Version3.0PR17Q1
StatusclosedFix in branchFixed in SCM revision8593b3e21352
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Toalostale
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0034716: Window action buttons are displayed when they should not under some circumstances.

DescriptionWindow action buttons are displayed when they should not under some circumstances. The problem is that FormInitializationComponent.java action handler is not called in a certain case.
Steps To ReproduceIn Live builds login in Openbravo ERP:
 * Go to Sales Order window.
 * Remove filters.
 * Select first record in the grid.
 * See that "Close" button is displayed.
 * Click on create a new record in form view.
 * Cancel the action.
 * Select again the first record in grid view.
 * See that now "Add Payment" and "Close" buttons are displayed. "Add Payment" should not be displayed for this document.
Proposed SolutionThe problem is that after creating a new record in form view and cancelling the action the FormInitializationComponent.java action handler is not called, so session variables, auxiliary inputs, etc. are not computed again.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 00166443.0MP0 closedmtaal "Edit" status disappears after undo/cancel 
related to defect 0034801 closedplatform Cancel changes button in form view doesn't works properly in User window. 

-  Notes
(0092296)
hgbot (developer)
2016-12-12 18:52

Repository: erp/devel/pi
Changeset: 8593b3e21352e7146b98f9d480284c7f25a93764
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Mon Dec 12 18:51:39 2016 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/8593b3e21352e7146b98f9d480284c7f25a93764 [^]

fixes issue 34716: sometimes action buttons are displayed when they should not

After closing a new record in form view without saving the changes (either using the cancel button of the toolbar or the close button of the form) some action buttons were being displayed when they should not. This was happening because the form was not being restored as not new after closing it without saving the changes. Back in grid view, having the isNew flag as true was avoiding the required call to the FIC in SETSESSION mode which is needed to recalculate the display logic of the buttons.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
---
(0092305)
alostale (manager)
2016-12-13 11:03

code reviewed and tested
(0092700)
hudsonbot (developer)
2016-12-16 18:39

A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/dc8bf00badd0 [^]
Maturity status: Test

- Issue History
Date Modified Username Field Change
2016-12-12 13:05 umartirena New Issue
2016-12-12 13:05 umartirena Assigned To => caristu
2016-12-12 13:05 umartirena Modules => Core
2016-12-12 13:05 umartirena Triggers an Emergency Pack => No
2016-12-12 14:22 caristu Status new => scheduled
2016-12-12 16:49 caristu Relationship added related to 0016644
2016-12-12 18:52 hgbot Checkin
2016-12-12 18:52 hgbot Note Added: 0092296
2016-12-12 18:52 hgbot Status scheduled => resolved
2016-12-12 18:52 hgbot Resolution open => fixed
2016-12-12 18:52 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/8593b3e21352e7146b98f9d480284c7f25a93764 [^]
2016-12-12 18:58 caristu Review Assigned To => alostale
2016-12-13 11:03 alostale Note Added: 0092305
2016-12-13 11:03 alostale Status resolved => closed
2016-12-13 11:03 alostale Fixed in Version => 3.0PR17Q1
2016-12-16 18:39 hudsonbot Checkin
2016-12-16 18:39 hudsonbot Note Added: 0092700
2016-12-21 15:28 inigosanchez Relationship added related to 0034801


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker