BF [ 2827782 ] TabCreateFields process not setting entity type well

https://sourceforge.net/tracker/?func=detail&atid=879332&aid=2827782&group_id=176962
This commit is contained in:
teo_sarca 2009-07-28 07:39:10 +00:00
parent 81257ae42c
commit bb765cf8cd
1 changed files with 5 additions and 0 deletions

View File

@ -33,6 +33,10 @@ import org.compiere.util.DB;
* *
* @author Jorg Janke * @author Jorg Janke
* @version $Id: TabCreateFields.java,v 1.3 2006/07/30 00:51:02 jjanke Exp $ * @version $Id: TabCreateFields.java,v 1.3 2006/07/30 00:51:02 jjanke Exp $
*
* @author Teo Sarca
* <li>BF [ 2827782 ] TabCreateFields process not setting entity type well
* https://sourceforge.net/tracker/?func=detail&atid=879332&aid=2827782&group_id=176962
*/ */
public class TabCreateFields extends SvrProcess public class TabCreateFields extends SvrProcess
{ {
@ -84,6 +88,7 @@ public class TabCreateFields extends SvrProcess
// //
MField field = new MField (tab); MField field = new MField (tab);
field.setColumn(column); field.setColumn(column);
field.setEntityType(tab.getEntityType()); // Use Tab's Entity Type - teo_sarca, BF [ 2827782 ]
if (column.isKey()) if (column.isKey())
field.setIsDisplayed(false); field.setIsDisplayed(false);
if (field.save()) if (field.save())