浏览代码

BirthCertificate edit replaced "shows" with "edit"
Fixes #65

Andrew Grant 5 月之前
父节点
当前提交
ae61e8fc72

+ 1 - 1
src/main/java/scot/carricksoftware/grants/controllers/certificates/birthcertificates/BirthCertificateFormControllerImpl.java

@@ -118,7 +118,7 @@ public class BirthCertificateFormControllerImpl implements BirthCertificateFormC
         model.addAttribute(AttributeConstants.PEOPLE, personService.findAll());
         model.addAttribute(AttributeConstants.PLACES, placeService.findAll());
         model.addAttribute(AttributeConstants.ORGANISATIONS, organisationService.findAll());
-        return MappingConstants.REDIRECT + CertificateMappingConstants.BIRTH_CERTIFICATE_SHOW.replace("{id}", "" + savedCommand.getId());
+        return MappingConstants.REDIRECT + CertificateMappingConstants.BIRTH_CERTIFICATE_EDIT.replace("{id}", "" + savedCommand.getId());
     }
 
 

+ 1 - 1
src/main/resources/templates/certificates/birthCertificate/form.html

@@ -117,7 +117,7 @@
                             <!--/*@thymesVar id="organisations" type="scot.carricksoftware.grants.domains.places.Organisation"*/-->
                             <option th:each="organisation : ${organisations}"
                                     th:value="${organisation.id}" th:text="${organisation.name}"></option>
-                        </select>
+                        </select>i
                     </div>
                     <div th:if="${#fields.hasErrors('registrationAuthority')}">
                         <ul class="text-danger">