Commit c7b4536e authored by Kostis Trantzas's avatar Kostis Trantzas
Browse files

Merge branch '92-product-specification-characteristics-fail-to-be-created-updated' into 'develop'

fix for #92

See merge request !90
parents f9333b63 354980b7
Loading
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -430,9 +430,10 @@ public class ProductSpecificationRepoService {
				// we need the attachment model from resource spec models
				boolean idexists = false;
				for (ProductSpecificationCharacteristic orinalAtt : prodSpec.getProductSpecCharacteristic()) {
					if (orinalAtt.getName().equals(ar.getName())) {
					if (orinalAtt.getName()!=null && ar.getName()!=null &&  orinalAtt.getName().equals(ar.getName())) {
						idexists = true;
						idAddedUpdated.put(orinalAtt.getName(), true);
						orinalAtt.updateWith( ar );
						break;
					}
				}