mdoerk / seng513project

Course Project of SENG 513
http://pages.cpsc.ucalgary.ca/~sillito/seng-513/project.html
23 stars 21 forks source link

fix add issue and redirect add issue to list of issue page when issue been #327

Closed wwywu closed 13 years ago

wwywu commented 13 years ago

fix add issue and redirect add issue to list of issue page when issue been added Closes GH-304 Closes GH-196. This commit includes 2 related fixes:

  1. add issue the bug was due to: -having the primary key for issue defined as unique, primary key in itself is already unique -missing comma in the db schema -there was quotation marks around the user id which makes it a string instead of an integer so the issues are not getting associated to the user.
  2. redirect to list issue page when an issue is successfully added: -changed render to redirectTo('/listIssues); -the reputation requires a callback was was not included

Testing:

  1. add issue
  2. verify the newly added issue is added to list of issue and also associated with your profile

Thanks! :)

mmalinao commented 13 years ago

I'll take a look at this one