# HG changeset patch # User Mike Becker # Date 1757010929 -7200 # Node ID ee605da75f787a9f50a8e01af56c07fcd99d444d # Parent f6e409c17fab5c69659abb3e20a3b27aabceeb78 issue can no longer be linked to themselves - fixes #713 diff -r f6e409c17fab -r ee605da75f78 src/main/kotlin/de/uapcore/lightpit/Constants.kt --- a/src/main/kotlin/de/uapcore/lightpit/Constants.kt Thu Sep 04 20:20:36 2025 +0200 +++ b/src/main/kotlin/de/uapcore/lightpit/Constants.kt Thu Sep 04 20:35:29 2025 +0200 @@ -29,7 +29,7 @@ /** * A data in yyyy-mm-dd format to identify the release. */ - const val VERSION_DATE = "2025-05-26" + const val VERSION_DATE = "2025-09-04" /** * The path where the JSP files reside. diff -r f6e409c17fab -r ee605da75f78 src/main/kotlin/de/uapcore/lightpit/logic/IssueLogic.kt --- a/src/main/kotlin/de/uapcore/lightpit/logic/IssueLogic.kt Thu Sep 04 20:20:36 2025 +0200 +++ b/src/main/kotlin/de/uapcore/lightpit/logic/IssueLogic.kt Thu Sep 04 20:35:29 2025 +0200 @@ -210,6 +210,7 @@ val targetIssue: Issue? = http.param("issue")?.let { (if (it.startsWith("#") && it.length > 1) (it.substring(1).split(" ", limit = 2)[0]) else it) .toIntOrNull() + ?.takeIf { id -> id != issue.id } ?.let(dao::findIssue) ?.takeIf { target -> target.project.id == issue.project.id } } diff -r f6e409c17fab -r ee605da75f78 src/main/webapp/WEB-INF/changelogs/changelog-de.jspf --- a/src/main/webapp/WEB-INF/changelogs/changelog-de.jspf Thu Sep 04 20:20:36 2025 +0200 +++ b/src/main/webapp/WEB-INF/changelogs/changelog-de.jspf Thu Sep 04 20:35:29 2025 +0200 @@ -32,6 +32,7 @@
  • "In Projekt Öffnen" Schaltfläche zur (globalen) Vorgangsansicht hinzugefügt.
  • Vorgänge können nun auch direkt über die Vorgangsnummer (anstatt Raute + Nummer) verlinkt werden.
  • Die Standardkategorie für neue Vorgänge in veröffentlichten Versionen ist nun "Fehler" anstelle von "Feature".
  • +
  • Vorgänge können nicht länger mit sich selbst verlinkt werden.
  • Fehler in der Deutschen Übersetzung behoben.
  • diff -r f6e409c17fab -r ee605da75f78 src/main/webapp/WEB-INF/changelogs/changelog.jspf --- a/src/main/webapp/WEB-INF/changelogs/changelog.jspf Thu Sep 04 20:20:36 2025 +0200 +++ b/src/main/webapp/WEB-INF/changelogs/changelog.jspf Thu Sep 04 20:35:29 2025 +0200 @@ -32,6 +32,7 @@
  • Add convenience OPEN IN PROJECT button to the global issue view.
  • Change that you can now relate issues by just submitting their number (instead of hash + number).
  • Change that the default category for new issues in released versions is Bug instead of Feature.
  • +
  • Fix that issues could relate to themselves.
  • Fix errors in the German translation.
  • diff -r f6e409c17fab -r ee605da75f78 src/main/webapp/WEB-INF/jsp/issue-form.jsp --- a/src/main/webapp/WEB-INF/jsp/issue-form.jsp Thu Sep 04 20:20:36 2025 +0200 +++ b/src/main/webapp/WEB-INF/jsp/issue-form.jsp Thu Sep 04 20:35:29 2025 +0200 @@ -45,7 +45,10 @@ - ${issue.id} + + ${issue.id} + + diff -r f6e409c17fab -r ee605da75f78 src/main/webapp/WEB-INF/jsp/issue-view.jsp --- a/src/main/webapp/WEB-INF/jsp/issue-view.jsp Thu Sep 04 20:20:36 2025 +0200 +++ b/src/main/webapp/WEB-INF/jsp/issue-view.jsp Thu Sep 04 20:35:29 2025 +0200 @@ -47,7 +47,10 @@ - ${issue.id} + + ${issue.id} + +
    diff -r f6e409c17fab -r ee605da75f78 src/main/webapp/issue-search.js --- a/src/main/webapp/issue-search.js Thu Sep 04 20:20:36 2025 +0200 +++ b/src/main/webapp/issue-search.js Thu Sep 04 20:35:29 2025 +0200 @@ -38,9 +38,12 @@ searchBoxOldContent = searchBox.value; const req = new XMLHttpRequest(); req.addEventListener("load", (evt) => { + const openedIssueIdElem = document.getElementById('opened-issue-id'); + const openedIssueId = openedIssueIdElem ? ('#' + openedIssueIdElem.value) : ''; const dataList = document.getElementById(elementId+'-list'); dataList.innerHTML = ''; JSON.parse(evt.target.responseText).forEach(function(item){ + if (openedIssueId.length > 0 && item.startsWith(openedIssueId)) return; const option = document.createElement('option'); option.value = item; dataList.appendChild(option);