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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0011334
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] 03. Procurement managementminoralways2009-11-12 12:462010-01-20 23:26
ReporternetworkbView Statuspublic 
Assigned Todbaz 
PriorityhighResolutionfixedFixed in Version2.50MP11
StatusclosedFix in branchFixed in SCM revisiond92188a8af65
ProjectionnoneETAnoneTarget Version2.50MP11
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product Version2.50MP8SCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0011334: Product selector is blocked when a search is done with any warehouse

DescriptionIn Purchase Invoice > Lines, when product selector is opened, shows all products. However, if client has no warehouses (nothing is shown in Warehouse combo at the selector), and try to do a search in the selector, it is blocked and nothing is search.

A Javascript error is shown in firebug:

Index or size is negative or greater than the allowed amount" code: "1
blurGrid()windowKeyboard.js (línea 89)
cursorFocus(img#buttonProduct.FieldButton_Icon blank.gif, "onmousedown")windowKeyboard.js (línea 13)
mouseDownLogic(mousedown clientX=462, clientY=260, img#buttonProduct.FieldButton_Icon blank.gif)
Steps To ReproduceCreate a new Client in General Setup > Client > Initial Client Setup.
Create a new Organization in General Setup > Enterprise > Initial Organization Setup (select it as Legal with accounting).
Go to General Setup > Enterprise > Organization and select "Allow period control" and select a calendar.
Run "Set as ready" process.
Go to Financial Management > Accounting > Setup > Fiscal calendar > Period.
Create a new record (IE 2009) and run "Create periods" process.
Go to Financial Management > Accounting > Transactions > Open/close periods.
Select the Organization, year, and Dec-09, and as action Period open. Save it and process it.
Create (it does not matter their values) a Business Partner Category, a Business Partner (including an Address), a Product Category, a Product, a Tax Category, a Purchase Price list, a Payment Term.
Create a Purchase Invoice (if some required information is not filled, just create it).
Go to its Lines, and open product Selector.
All product are shown (notice that no warehouse is set in the filter).
In name filter, set %a% and search.
A javascript error is shown and nothing is returned.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to backport 0012219 closeddbaz Product selector is blocked when a search is done with any warehouse 

-  Notes
(0021799)
rafaroda (developer)
2009-11-13 10:54

An easier way of reproducing this issue is:
1) Log with regular Openbravo Admin role.
2) Go to Warehouse Management || Setup || Warehouse and Storage Bins || Warehouse
3) Dectivate both Main and Secondary Warehouses
4) Create a Purchase Invoice (if some required information is not filled, just create it).
5) Go to its Lines, and open product Selector.
6) All product are shown (notice that no warehouse is set in the filter).
7) Click on search.
A javascript error is shown: Index or size is negative or greater than the allowed amount" code: "1
(0023432)
dbaz (developer)
2010-01-14 13:37

Suggested change

In search.js inside the function setFilters()

Change this

      for(var i=0; i < selects.length; i++) {
          paramsData[count++] = new Array(selects[i].name, selects[i].options[selects[i].selectedIndex].value);
      }


with this

      for(var i=0; i < selects.length; i++) {
         if ((selects[i].selectedIndex) != -1) {
            paramsData[count++] = new Array(selects[i].name, selects[i].options[selects[i].selectedIndex].value);
         };
      }


Before push anything, please shuehner ensure that it doesn't break any other thing
(0023471)
hgbot (developer)
2010-01-15 13:23

Repository: erp/devel/pi
Changeset: d92188a8af655d12388b0dca18a5271401e794d9
Author: David Baz Fayos <david.baz <at> openbravo.com>
Date: Fri Jan 15 13:22:16 2010 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/d92188a8af655d12388b0dca18a5271401e794d9 [^]

Fixed issue 11334: Now no warehouse selector gets blocked

---
M src/org/openbravo/erpCommon/security/Login_F1.html
M web/js/searchs.js
M web/js/utils.js
---
(0023494)
arunkumar (reporter)
2010-01-18 10:20

Product selector is not blocked now when a search is done with any warehouse.

Tested & Working fine.
(0023656)
hudsonbot (developer)
2010-01-20 23:26

A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated:

Changeset: http://code.openbravo.com/erp/devel/main/rev/d92188a8af65 [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/fa6621f85351 [^]
Tests: http://builds.openbravo.com/view/devel-int/ [^]
OBX: http://builds.openbravo.com/erp/obx/core/OpenbravoERP-2.50CI.15942.obx [^]

- Issue History
Date Modified Username Field Change
2009-11-12 12:46 networkb New Issue
2009-11-12 12:46 networkb Assigned To => rafaroda
2009-11-13 10:54 rafaroda Note Added: 0021799
2009-11-13 10:54 rafaroda Assigned To rafaroda => shuehner
2009-11-13 10:54 rafaroda Priority immediate => high
2009-11-13 10:54 rafaroda Status new => scheduled
2010-01-13 09:11 shuehner Assigned To shuehner => dbaz
2010-01-14 12:45 dbaz Assigned To dbaz => shuehner
2010-01-14 13:37 dbaz Note Added: 0023432
2010-01-15 11:59 dbaz Assigned To shuehner => dbaz
2010-01-15 13:23 hgbot Checkin
2010-01-15 13:23 hgbot Note Added: 0023471
2010-01-15 13:23 hgbot Status scheduled => resolved
2010-01-15 13:23 hgbot Resolution open => fixed
2010-01-15 13:23 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/d92188a8af655d12388b0dca18a5271401e794d9 [^]
2010-01-18 10:20 arunkumar Note Added: 0023494
2010-01-18 10:20 arunkumar Status resolved => closed
2010-01-18 10:20 arunkumar Fixed in Version => 2.50MP10
2010-01-18 12:31 sureshbabu Fixed in Version 2.50MP10 => 2.50MP11
2010-01-19 00:00 anonymous sf_bug_id 0 => 2934604
2010-01-20 23:26 hudsonbot Checkin
2010-01-20 23:26 hudsonbot Note Added: 0023656
2010-02-10 21:58 dbaz Relationship added related to 0012219


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker