fix broken page title - fixes #493

Mon, 13 Jan 2025 20:12:37 +0100

author
Mike Becker <universe@uap-core.de>
date
Mon, 13 Jan 2025 20:12:37 +0100
changeset 339
4f0d0d1a7fab
parent 338
3a581d985b87
child 340
7214dd755ded

fix broken page title - fixes #493

src/main/kotlin/de/uapcore/lightpit/servlet/ProjectServlet.kt file | annotate | diff | comparison | revisions
src/main/webapp/WEB-INF/changelogs/changelog-de.jspf file | annotate | diff | comparison | revisions
src/main/webapp/WEB-INF/changelogs/changelog.jspf file | annotate | diff | comparison | revisions
--- a/src/main/kotlin/de/uapcore/lightpit/servlet/ProjectServlet.kt	Sat Dec 28 18:21:16 2024 +0100
+++ b/src/main/kotlin/de/uapcore/lightpit/servlet/ProjectServlet.kt	Mon Jan 13 20:12:37 2025 +0100
@@ -363,7 +363,8 @@
             }
 
             with(http) {
-                pageTitle = "#${issue.id} ${issue.subject} (${issue.project.name})"
+                pageTitle = (if (issue.id < 0) i18n("button.issue.create")
+                    else "#${issue.id} ${issue.subject}") + " (${issue.project.name})"
                 view = IssueEditView(
                     issue,
                     path.projectInfo.versions,
--- a/src/main/webapp/WEB-INF/changelogs/changelog-de.jspf	Sat Dec 28 18:21:16 2024 +0100
+++ b/src/main/webapp/WEB-INF/changelogs/changelog-de.jspf	Mon Jan 13 20:12:37 2025 +0100
@@ -31,6 +31,7 @@
         Fehler behoben, bei dem die Formulare für Versionen und Vorgänge existierende Datumsfelder mit dem
         falschen Jahr befüllen, wenn sich das Datum in Kalenderwoche 1, aber im Dezember befindet.
     </li>
+    <li>Kaputten Seitentitel beim Erstellen von neuen Vorgängen behoben (Regression von Version 1.4.0).</li>
 </ul>
 
 <h3>Version 1.4.0</h3>
--- a/src/main/webapp/WEB-INF/changelogs/changelog.jspf	Sat Dec 28 18:21:16 2024 +0100
+++ b/src/main/webapp/WEB-INF/changelogs/changelog.jspf	Mon Jan 13 20:12:37 2025 +0100
@@ -31,6 +31,7 @@
         Fix that the versions form (release and EOL date) and the issue form (ETA) used
         the week-year instead of the year for loading an existing date into the form.
     </li>
+    <li>Fix broken page title when creating new issues (introduced with version 1.4.0).</li>
 </ul>
 
 <h3>Version 1.4.0</h3>

mercurial