diff --git a/trunk/module/task/view/create.html.php b/trunk/module/task/view/create.html.php index b9dab28d45..5e32022882 100644 --- a/trunk/module/task/view/create.html.php +++ b/trunk/module/task/view/create.html.php @@ -77,7 +77,7 @@ function copyStoryTitle() { var storyTitle = $('#story option:selected').text(); - storyTitle = storyTitle.substr(storyTitle.indexOf('/') + 1); + storyTitle = storyTitle.substr(storyTitle.lastIndexOf('/') + 1); $('#name').attr('value', storyTitle); }