Creating view lines not working in Smart Browser

Description

1.- Log in as as SystemAdministrator. Create a View entry and create view columns.
2.- Create a Smart Browser entry, select the view and save.
3.- In the SB, execute "Create Fields"
4.- The fields are not created.

Reason; in method MView.getViewColumns(), an array is created and asked if not null. This will always return an empty m_ViewColumn.

m_ViewColumn = new ArrayList<MViewColumn>();
if(m_ViewColumn != null)
return m_ViewColumn;

The code should be as follows:
if(m_ViewColumn!=null && !m_ViewColumn.isEmpty())
return m_ViewColumn;

m_ViewColumn = new ArrayList<MViewColumn>();

See attachment.

Best regards,
Mario Calderon

Environment

DEVELOPMENT Branch, Changeset 7172:48b362f390dd of MView.java

Activity

Show:
Victor Perez Juarez
September 20, 2012, 1:45 PM

Changeset: http://adempiere.hg.sourceforge.net:8000/hgroot/adempiere/adempiere/rev/f8a6c4839cf2
--------- Repository: adempiere
Branch: development
Revision: 7206-f8a6c4839cf2
Parent: 7195:cc338e0978cf
Author: eEvolution author Victor Perez<victor.perez@e-evolution.com>
Date: 2012-09-19 03:53 -0500

Log Message:
----------- Creating view lines not working in Smart Browser
https://adempiere.atlassian.net/browse/ADEMPIERE-144

Modified Files:
-------------- /base/src/org/adempiere/model/MView.java

Fixed

Assignee

Unassigned

Reporter

Mario Calderon

Labels

None

Time tracking

0m

Time remaining

12m

Components

Affects versions

Priority

Major
Configure