Bug 507843

Summary: Link not working on any report
Product: [Applications] kmymoney Reporter: John Zoetebier <john>
Component: reportsAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED FIXED    
Severity: normal CC: p.r.worrall, ralf.habacker
Priority: NOR    
Version First Reported In: 5.2.0   
Target Milestone: ---   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed/Implemented In: 5.2.2
Sentry Crash Report:
Attachments: Screen shot of report showing transaction link in blue
Testcase
Test case for issue 2 - large memo content

Description John Zoetebier 2025-08-04 08:32:36 UTC
Created attachment 183773 [details]
Screen shot of report showing transaction link in blue

***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports

Please remove this comment after reading and before submitting - thanks!
***

SUMMARY
All reports have the same issue: link on report to transaction is not working anymore.
I have tested this on 2 Windows 11 PCs and they show the same problem.
Other behaviour that may or may not be related.
1) Transaction link field is too short
2) When memo is large the right part of the report is outside the nor mal windows requiring horizontal scrol.
In version 5.1 reports did not have this problem.

STEPS TO REPRODUCE
1. Open a transaction or tax report
2. Click on blue transaction link
3. 

OBSERVED RESULT
Link does not work

EXPECTED RESULT
Link should open the account with that transaction.

SOFTWARE/OS VERSIONS
Windows: 11
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Paul Worrall 2025-12-24 14:14:05 UTC
I can confirm this on KMM 5.2.1.

For example: A link on a report points to the location:    /ledger?id=A000001&tid=T000000000000009976

Clicking on the link does nothing.

When I find the transaction (9976) manually it has two splits, one to Account A000001 and one to a category with a different ID


KMyMoney: 5.2.1
Akonadi: Unknown(I18N_ARGUMENT_MISSING) (build against 6.5.3(I18N_ARGUMENT_MISSING))
Alkimia: 8.2.1(I18N_ARGUMENT_MISSING) (build against 8.2.1(I18N_ARGUMENT_MISSING))
Aqbanking: Unknown(I18N_ARGUMENT_MISSING) (build against 6.6.3(I18N_ARGUMENT_MISSING))
Gpgme: Unknown(I18N_ARGUMENT_MISSING) (build against 2.0.0(I18N_ARGUMENT_MISSING))
Gwenhywfar: Unknown(I18N_ARGUMENT_MISSING) (build against 5.12.1(I18N_ARGUMENT_MISSING))
KDiagram: Unknown(I18N_ARGUMENT_MISSING) (build against (I18N_ARGUMENT_MISSING))
libical: Unknown(I18N_ARGUMENT_MISSING) (build against 3.0.20(I18N_ARGUMENT_MISSING))
libofx: Unknown(I18N_ARGUMENT_MISSING) (build against 0.10.9(I18N_ARGUMENT_MISSING))
SQLCipher: Unknown(I18N_ARGUMENT_MISSING) (build against 3.46.1(I18N_ARGUMENT_MISSING))
KDE Frameworks: 6.21.0
Qt: Using 6.10.1 and built against 6.10.1
Arch Linux (Wayland)
Build ABI: x86_64-little_endian-lp64
Kernel: linux 6.17.9-arch1-1
Comment 2 Paul Worrall 2025-12-31 14:28:09 UTC
After right-clicking any transaction in any ledger and choosing  "Show transaction details", the links in reports then work fine for the rest of the session.
Comment 3 Ralf Habacker 2026-02-05 22:51:00 UTC
Git commit c5235c4537dd6107cdda220ac6a94e92db7b61b3 by Ralf Habacker.
Committed on 05/02/2026 at 22:50.
Pushed by habacker into branch 'master'.

Fix bug in reports that date column is shown too small

The use of indentation caused this problem when using
QTextBrowser.

M  +0    -5    kmymoney/html/kmymoney.css

https://invent.kde.org/office/kmymoney/-/commit/c5235c4537dd6107cdda220ac6a94e92db7b61b3
Comment 4 Ralf Habacker 2026-02-05 23:00:07 UTC
Created attachment 189262 [details]
Testcase

(In reply to John Zoetebier from comment #0)
> Created attachment 183773 [details]
> All reports have the same issue: link on report to transaction is not
> working anymore.
> STEPS TO REPRODUCE
> 1. Open a transaction or tax report
> 2. Click on blue transaction link

I cannot reproduce this issue with the appended test case using the report "Transactions by Category (Customized)"
- using a build from git master branch on openSUSE Linux 
- using a Windows build from https://cdn.kde.org/ci-builds/office/kmymoney/5.2/windows/
Comment 5 Ralf Habacker 2026-02-05 23:09:33 UTC
Created attachment 189263 [details]
Test case for issue 2 - large memo content

(In reply to John Zoetebier from comment #0)
...
> 2) When memo is large the right part of the report is outside the nor mal windows requiring horizontal scrol.

With the appended "Test case for issue 2 - large memo content" I cannot reproduce this issue when showing the report "Transactions by Category (Customized)". I checked it with 
-  a build from git master branch on openSUSE Linux (Qt5.15 based)
- a Windows build from https://cdn.kde.org/ci-builds/office/kmymoney/5.2/windows/ (Qt6.10/KF6.22)
Comment 6 Ralf Habacker 2026-02-05 23:14:25 UTC
(In reply to John Zoetebier from comment #0)

> All reports have the same issue: link on report to transaction is not
> working anymore.

I am also unable to reproduce this issue with the test case and application mentioned in comment 5. Please check again using the attached test case and a current version of KMyMoney. If the issue persists, please provide feedback on how to reproduce it.
Comment 7 Thomas Baumgart 2026-02-08 08:07:45 UTC
Git commit 288f854455b03fb3a335752f6ab0b27decba29c0 by Thomas Baumgart, on behalf of Ralf Habacker.
Committed on 08/02/2026 at 08:04.
Pushed by tbaumgart into branch '5.2'.

Fix bug in reports that date column is shown too small

The use of indentation caused this problem when using
QTextBrowser.
(cherry picked from commit c5235c4537dd6107cdda220ac6a94e92db7b61b3)

M  +0    -5    kmymoney/html/kmymoney.css

https://invent.kde.org/office/kmymoney/-/commit/288f854455b03fb3a335752f6ab0b27decba29c0
Comment 8 John Zoetebier 2026-02-08 20:38:13 UTC
Retested report link version Version 5.2.1-a1eb8c3
Report link working fine now :)