Commits

Kai Diefenbach  committed d9b59d2

Bugfix: display only parent's active base price value for variants.

  • Participants
  • Parent commits 9e613b6

Comments (0)

Files changed (1)

File lfs/templates/manage/product/data.html

                 </div>
                 <div>
                     {{ form.active_base_price }}
-                    {% if product.is_variant and product.parent.active_base_price %}
-                        {% trans 'Yes' %}
-                    {% else %}
-                        {% trans 'No' %}
+                    {% if product.is_variant %}
+                        {% if product.parent.active_base_price %}
+                            {% trans 'Yes' %}
+                        {% else %}
+                            {% trans 'No' %}
+                        {% endif %}
                     {% endif %}
                 </div>
             </div>