summaryrefslogtreecommitdiff
path: root/ishtar/templates/sheet_operation.html
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2011-06-16 18:39:42 +0200
committerÉtienne Loks <etienne.loks@peacefrogs.net>2011-06-16 18:39:42 +0200
commitd0e445301abf1010c85f738fddcb3ac5894215e3 (patch)
treeaed266494a442ca241137370e7df7dc965febf5f /ishtar/templates/sheet_operation.html
parent588daeb26b7e847c7f29a546543e26dd07fc55c6 (diff)
downloadIshtar-d0e445301abf1010c85f738fddcb3ac5894215e3.tar.bz2
Ishtar-d0e445301abf1010c85f738fddcb3ac5894215e3.zip
Correct the database link between context records and operations (closes #482)
Diffstat (limited to 'ishtar/templates/sheet_operation.html')
-rw-r--r--ishtar/templates/sheet_operation.html8
1 files changed, 2 insertions, 6 deletions
diff --git a/ishtar/templates/sheet_operation.html b/ishtar/templates/sheet_operation.html
index b4c251197..db9d22cee 100644
--- a/ishtar/templates/sheet_operation.html
+++ b/ishtar/templates/sheet_operation.html
@@ -129,7 +129,7 @@
<th class='link'>&nbsp;</th>
</tr>
{% for parcel in item.parcels.all %}
- {% for context_record in parcel.context_record.all %}
+ {% for context_record in item.context_record.all %}
<tr>
<td>{{ context_record.label }}</td>
<td class='string'>{{context_record.unit}}</td>
@@ -159,8 +159,7 @@
<th>{% trans "Parcel" %}</th>
<th class='link'>&nbsp;</th>
</tr>
- {% for parcel in item.parcels.all %}
- {% for context_record in parcel.context_record.all %}
+ {% for context_record in item.context_record.all %}
{% for find in context_record.base_items.all %}
<tr>
<td>{{ find.full_label }}</td>
@@ -185,9 +184,6 @@
{% empty %}
<tr><td colspan="9" class='no_items'>{% trans "No find associated to parcel" %} {{parcel.short_label}} {% trans "(no context record)" %}</td></tr>
{% endfor %}
- {% empty %}
- <tr><td colspan="9" class='no_items'>{% trans "No find associated to this operation (no parcel)" %}</td></tr>
- {% endfor %}
</table>