From f4289934bffb47329cdb50a2007b6bfa472fc59f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Sat, 25 Nov 2017 18:53:26 +0100 Subject: [PATCH] Erzeugnis erfassen - orphaned richtig auswerten MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit An _assembly_row.html wird orphaned direkt als Wert übergeben und nicht über SELF.orphaned. Ermöglicht (wieder) das initiale Erfassen von Erzeugnissen ohne das Zusatz-Recht assembly_edit --- templates/webpages/part/_assembly_row.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/webpages/part/_assembly_row.html b/templates/webpages/part/_assembly_row.html index e629ff875..4be4f4c94 100644 --- a/templates/webpages/part/_assembly_row.html +++ b/templates/webpages/part/_assembly_row.html @@ -5,7 +5,7 @@ [%- USE P %] - [% IF SELF.orphaned || AUTH.assert('assembly_edit', 1) %] + [% IF orphaned || AUTH.assert('assembly_edit', 1) %] [% L.hidden_tag("assembly_items[+].parts_id", ITEM.part.id) %] [% END %] @@ -31,7 +31,7 @@ [% HTML.escape(ITEM.part.description) %] - [% IF SELF.orphaned || AUTH.assert('assembly_edit', 1) %] + [% IF orphaned || AUTH.assert('assembly_edit', 1) %] [%- L.input_tag("assembly_items[].qty_as_number", ITEM.qty_as_number, size = 10, @@ -43,7 +43,7 @@ [% ITEM.part.unit | html %] - [% IF SELF.orphaned || AUTH.assert('assembly_edit', 1) %] + [% IF orphaned || AUTH.assert('assembly_edit', 1) %] [% L.checkbox_tag("assembly_items[].bom", checked=ITEM.bom, for_submit=1) %] [% ELSE %] [% IF ITEM.bom %][% 'Yes' | $T8 %][% ELSE %][% 'No' | $T8 %][% END %] -- 2.20.1