Commits

Kai Diefenbach committed a60743d

Fixed saving of variant list type.

  • Participants
  • Parent commits 67da4e5

Comments (0)

Files changed (1)

File lfs/manage/views/product/variants.py

                 property_id, option_id = option.split("|")
                 pvo = ProductPropertyValue(product=variant, property_id=property_id, value=option_id, type=PROPERTY_VALUE_TYPE_VARIANT)
                 pvo.save()
-                
+
             message = _(u"Variants have been added.")
 
     html = (("#variants", manage_variants(request, product_id, as_string=True)),)
     # Send a signal to update cache
     product_changed.send(product)
 
+    html = (("#variants", manage_variants(request, product_id, as_string=True)),)
+
     result = simplejson.dumps({
-        "html": manage_variants(request, product_id, as_string=True),
+        "html": html,
         "message": _(u"Sup type has been saved."),
     }, cls=LazyEncoder)