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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0018122
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformmajoralways2011-07-28 18:482011-08-12 13:04
ReporterelopioView Statuspublic 
Assigned Toalostale 
PriorityimmediateResolutionfixedFixed in Version3.0MP2
StatusclosedFix in branchFixed in SCM revision540b30e15ffa
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionpiSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0018122: When the filter returns only one record, toolbar buttons dissapear

DescriptionWhen the grid filter returns only one record, that record is selected (highlighted in orange), but the toolbar buttons are not visible.

This is affecting the smoke test, because it assumes that after filtering, the first result will be selected.
Steps To ReproduceGo to http://live.builds.openbravo.com/int-full-pgsql/ [^]
Login with Openbravo/openbravo
Go to Sales Management > Transactions > Sales order
Click the first record with document No. PR/1
(the tool bar buttons appear)
Filter by Document No. = PR/1 and Total Gross Amount = 59.13, so you get only one result.
(the tool bar buttons do not appear)
Proposed SolutionAlways show the toolbar buttons when a record is selected.
TagsAutomated
Attached Filespng file icon Openbravo - Sales Order - PR1 - 13-09-201... 2011-07-28 11-58-34.png [^] (45,344 bytes) 2011-07-28 19:59

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0039550)
alostale (manager)
2011-07-29 13:46

The problem appears when having a record selected, a filter criteria which result includes the selected record is applied.

If having selected a record a filter criteria that returns just one record different than the selected one, it works fine.

Technically, the problem is in OBToolbar.updateButtonState. In the case that fails this.view.viewGrid.getSelectedRecord() does not return any record, so it is treated as empty selection removing all the buttons.
(0039552)
hgbot (developer)
2011-07-29 14:05

Repository: erp/devel/pi
Changeset: 540b30e15ffacec03b4cf952df2220b1b637ba1b
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Fri Jul 29 14:05:01 2011 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/540b30e15ffacec03b4cf952df2220b1b637ba1b [^]

fixed bug 18122: When the filter returns selected record, toolbar buttons dissapear

  Do not update button state when data arrives. This action should only be performed in
  record selection/deselection which is already properly managed.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
---
(0039742)
hudsonbot (developer)
2011-08-01 14:22

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/cf2afed6e8ef [^]

Maturity status: Test
(0040160)
jonalegriaesarte (reporter)
2011-08-12 13:04

Verified

- Issue History
Date Modified Username Field Change
2011-07-28 18:48 elopio New Issue
2011-07-28 18:48 elopio Assigned To => alostale
2011-07-28 18:48 elopio Modules => Core
2011-07-28 18:49 elopio Tag Attached: Automated
2011-07-28 18:56 elopio version => pi
2011-07-28 19:58 elopio Issue Monitored: elopio
2011-07-28 19:59 elopio File Added: Openbravo - Sales Order - PR1 - 13-09-201... 2011-07-28 11-58-34.png
2011-07-29 13:46 alostale Note Added: 0039550
2011-07-29 14:05 hgbot Checkin
2011-07-29 14:05 hgbot Note Added: 0039552
2011-07-29 14:05 hgbot Status new => resolved
2011-07-29 14:05 hgbot Resolution open => fixed
2011-07-29 14:05 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/540b30e15ffacec03b4cf952df2220b1b637ba1b [^]
2011-08-01 14:22 hudsonbot Checkin
2011-08-01 14:22 hudsonbot Note Added: 0039742
2011-08-12 13:04 jonalegriaesarte Note Added: 0040160
2011-08-12 13:04 jonalegriaesarte Status resolved => closed
2011-08-12 13:04 jonalegriaesarte Fixed in Version => 3.0MP2


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker