Pflichtenhefte: nach Version zurücksetzen richtige Versionsnummer anzeigen
authorMoritz Bunkus <m.bunkus@linet-services.de>
Wed, 28 Jan 2015 14:52:55 +0000 (15:52 +0100)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Thu, 19 Feb 2015 09:43:07 +0000 (10:43 +0100)
SL/Controller/RequirementSpec.pm

index 6694ce3..d65ce89 100644 (file)
@@ -207,7 +207,7 @@ sub action_revert_to {
   my $version = $versioned_copy->versions->[0];
   $version->update_attributes(working_copy_id => $self->requirement_spec->id);
 
-  flash_later('info', t8('The requirement spec has been reverted to version #1.', $self->requirement_spec->version->version_number));
+  flash_later('info', t8('The requirement spec has been reverted to version #1.', $versioned_copy->version->version_number));
   $self->js->redirect_to($self->url_for(action => 'show', id => $self->requirement_spec->id))->render($self);
 }