fix wrong RSS category when it changed with that entry - fixes #408

Mon, 05 Aug 2024 20:04:47 +0200

author
Mike Becker <universe@uap-core.de>
date
Mon, 05 Aug 2024 20:04:47 +0200
changeset 315
4fe3f61744cf
parent 314
8a8b1c5d168b
child 316
3ddc29ec33cd

fix wrong RSS category when it changed with that entry - fixes #408

src/main/kotlin/de/uapcore/lightpit/servlet/FeedServlet.kt file | annotate | diff | comparison | revisions
src/main/kotlin/de/uapcore/lightpit/viewmodel/Feeds.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
src/main/webapp/WEB-INF/jsp/issues-feed.jsp file | annotate | diff | comparison | revisions
--- a/src/main/kotlin/de/uapcore/lightpit/servlet/FeedServlet.kt	Mon Aug 05 19:44:16 2024 +0200
+++ b/src/main/kotlin/de/uapcore/lightpit/servlet/FeedServlet.kt	Mon Aug 05 20:04:47 2024 +0200
@@ -84,6 +84,7 @@
         issue.component,
         issue.status.name,
         issue.category.name,
+        issue.category.name,
         issue.subject,
         issue.description.replace("\r", ""),
         issue.assignee,
--- a/src/main/kotlin/de/uapcore/lightpit/viewmodel/Feeds.kt	Mon Aug 05 19:44:16 2024 +0200
+++ b/src/main/kotlin/de/uapcore/lightpit/viewmodel/Feeds.kt	Mon Aug 05 20:04:47 2024 +0200
@@ -37,6 +37,7 @@
     var component: String,
     var status: String,
     var category: String,
+    var currentCategory: String,
     var subject: String,
     var description: String,
     var assignee: String,
--- a/src/main/webapp/WEB-INF/changelogs/changelog-de.jspf	Mon Aug 05 19:44:16 2024 +0200
+++ b/src/main/webapp/WEB-INF/changelogs/changelog-de.jspf	Mon Aug 05 20:04:47 2024 +0200
@@ -36,6 +36,7 @@
     <li>Ein neuer "Speichern" Button im Vorgangseditor führt, wie zuvor, zurück zur Vorgangsansicht.</li>
     <li>Der Seitentitel, wenn ein Vorgang betrachtet wird, beginnt nun mit der Vorgangs-ID.</li>
     <li>Die Vorgangsübersicht zeigt nun die Zielversion jedes Vorgangs, wenn im Navigationsmenü keine Version gewählt ist.</li>
+    <li>Fehler behoben, dass die Kategorie im RSS Feed falsch dargestellt wird, wenn sie sich geändert hat.</li>
     <li>Aktualisierung auf Kotlin 2.0 und Java 21.</li>
 </ul>
 
--- a/src/main/webapp/WEB-INF/changelogs/changelog.jspf	Mon Aug 05 19:44:16 2024 +0200
+++ b/src/main/webapp/WEB-INF/changelogs/changelog.jspf	Mon Aug 05 20:04:47 2024 +0200
@@ -36,6 +36,7 @@
     <li>A new "Save" button in the issue editor retains the old behavior and returns to the issue viewer.</li>
     <li>When viewing an issue, the page title now starts with the issue ID.</li>
     <li>The issue overview now shows the target version of an issue when no version is selected in the left menu.</li>
+    <li>Fix that the category in the RSS feed is not correctly displayed when it changed with an update.</li>
     <li>Upgrade to Kotlin 2.0 and change JVM target to Java 21.</li>
 </ul>
 
--- a/src/main/webapp/WEB-INF/jsp/issues-feed.jsp	Mon Aug 05 19:44:16 2024 +0200
+++ b/src/main/webapp/WEB-INF/jsp/issues-feed.jsp	Mon Aug 05 20:04:47 2024 +0200
@@ -65,7 +65,7 @@
                         <h2><fmt:message key="issue.description"/></h2>
                         <div style="white-space: pre-wrap;">${issue.description}</div>
                     ]]></description>
-                    <category><fmt:message key="issue.category.${issue.category}"/></category>
+                    <category><fmt:message key="issue.category.${issue.currentCategory}"/></category>
                 </c:when>
                 <c:when test="${not empty entry.comment}">
                     <c:set var="comment" value="${entry.comment}"/>

mercurial