diff options
| author | Michael <[email protected]> | 2017-05-28 13:01:40 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-05-28 13:01:40 -0400 |
| commit | c629251ecdd5de785dfa9490078e4c3f3d92c167 (patch) | |
| tree | 30c44ff7c8bcfc8483947617dd9c02ba8479915a | |
| parent | 0214626db3de7964ce572bf4de27aeb36fc6225a (diff) | |
| download | project-unite-c629251ecdd5de785dfa9490078e4c3f3d92c167.tar.gz project-unite-c629251ecdd5de785dfa9490078e4c3f3d92c167.tar.bz2 project-unite-c629251ecdd5de785dfa9490078e4c3f3d92c167.zip | |
fix substring
| -rw-r--r-- | Project-Unite/Controllers/BugsController.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Project-Unite/Controllers/BugsController.cs b/Project-Unite/Controllers/BugsController.cs index c44f386..d321867 100644 --- a/Project-Unite/Controllers/BugsController.cs +++ b/Project-Unite/Controllers/BugsController.cs @@ -135,7 +135,7 @@ namespace Project_Unite.Controllers **Author's description:** -{comment.Body.Substring(Math.Min(comment.Body.Length, 128))}", Url.Action("ViewBug", new { id = bug.Id })); +{comment.Body.Substring(0, Math.Min(comment.Body.Length, 128))}", Url.Action("ViewBug", new { id = bug.Id })); return RedirectToAction("ViewBug", new { id = bug.Id }); } } |
