X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/c96c4bb2c3561b54ef23330fdb1fa1d528b26fff..c5d397d9b1c2e13dfdaf644fbd98cd41d00a2909:/templates/webpages/requirement_spec_version/list.html diff --git a/templates/webpages/requirement_spec_version/list.html b/templates/webpages/requirement_spec_version/list.html index 7f6ab52b9..74ef179a7 100644 --- a/templates/webpages/requirement_spec_version/list.html +++ b/templates/webpages/requirement_spec_version/list.html @@ -12,8 +12,8 @@ - [%- IF SELF.requirement_spec.version_id %] - [% L.hidden_tag('versioned_copy_id', SELF.requirement_spec.version_id, no_id=1) %] + [%- IF SELF.requirement_spec.version %] + [% L.hidden_tag('versioned_copy_id', SELF.requirement_spec.version.requirement_spec_id, no_id=1) %] [%- LxERP.t8("Working copy identical to version number #1", SELF.requirement_spec.version.version_number) %] [%- ELSE %] [%- LxERP.t8("Working copy without version") %] @@ -23,13 +23,14 @@ [% SELF.requirement_spec.mtime.to_kivitendo(precision='minute') %] - [%- FOREACH versioned = SELF.versioned_copies %] + [%- FOREACH versioned_copy = SELF.requirement_spec.versioned_copies_sorted %] + [%- SET version = versioned_copy.version %] - [% L.hidden_tag('versioned_copy_id', versioned.id, no_id=1) %] - [% HTML.escape(versioned.version.version_number) %] - [% HTML.escape(P.truncate(versioned.description)) %] - [% HTML.escape(P.truncate(versioned.comment)) %] - [% versioned.mtime.to_kivitendo(precision='minute') %] + [% L.hidden_tag('versioned_copy_id', versioned_copy.id, no_id=1) %] + [% HTML.escape(version.version_number) %] + [% HTML.escape(P.truncate(version.description)) %] + [% HTML.escape(P.truncate(version.comment)) %] + [% version.itime.to_kivitendo(precision='minute') %] [%- END %]