Skip to content
Snippets Groups Projects
Commit 4dae5b08 authored by Gabriel Copat's avatar Gabriel Copat
Browse files

Fixed merge bbugs

parent 1885fd6e
No related branches found
No related tags found
1 merge request!36Resolve "As a user I want to be able to use the application on any device e.g. iPhone, iPad, Laptop"
......@@ -42,7 +42,7 @@ public class LandmarksController {
} else {
// converts valid response using Location constructor into a submittable format to the sql table
Location loc = new Location(landmarks.getLandmarkName(), landmarks.getLandmarkEmail(), landmarks.getLandmarkDescription(), landmarks.getLandmarkLocation(), landmarks.getTrailID(), false);
Location loc = new Location(landmarks.getLandmarkID(), landmarks.getLandmarkName(), landmarks.getLandmarkEmail(), landmarks.getLandmarkDescription(), landmarks.getLandmarkLocation(), landmarks.getTrailID(), false);
locationRepository.addLocation(loc); // adds valid landmark to locations table
ModelAndView modelAndView = new ModelAndView("redirect:/home");
return modelAndView;
......
......@@ -113,7 +113,7 @@
</div>
<hr style="height:15px; visibility:hidden;" />
<H2 id="return">
<a href="/home">Home</a></H2>
<a href="/mobile-home">Home</a></H2>
<hr style="height:5px; visibility:hidden;" />
</article>
<hr style="height:40px; visibility:hidden;" />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment