details:   https://code.openbravo.com/erp/devel/pi/rev/cfce67ebea69
changeset: 33615:cfce67ebea69
user:      David Miguelez <david.miguelez <at> openbravo.com>
date:      Thu Mar 01 10:39:18 2018 +0100
summary:   Related to Issue 38015. Ensure that the new Attribute is always 
active.

This can happen when cloning the Attribute set instance with id 0,
that can be not active.

diffstat:

 src/org/openbravo/materialmgmt/refinventory/ReferencedInventoryUtil.java |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r 6340f0b9d910 -r cfce67ebea69 
src/org/openbravo/materialmgmt/refinventory/ReferencedInventoryUtil.java
--- a/src/org/openbravo/materialmgmt/refinventory/ReferencedInventoryUtil.java  
Wed Feb 28 13:48:35 2018 +0100
+++ b/src/org/openbravo/materialmgmt/refinventory/ReferencedInventoryUtil.java  
Thu Mar 01 10:39:18 2018 +0100
@@ -67,6 +67,7 @@
 
     final AttributeSetInstance newAttributeSetInstance = 
(AttributeSetInstance) DalUtil.copy(
         originalAttributeSetInstance, false);
+    newAttributeSetInstance.setActive(true);
     newAttributeSetInstance.setClient(referencedInventory.getClient());
     
newAttributeSetInstance.setOrganization(originalAttributeSetInstance.getOrganization());
     
newAttributeSetInstance.setParentAttributeSetInstance(originalAttributeSetInstance);

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to