Project

General

Profile

Actions

Fehler #489

open

Wiedervorlagen im Beleg sind für andere Benutzer nicht sichtbar

Added by Jan Büren about 3 years ago. Updated about 3 years ago.

Status:
Neu
Priority:
Normal
Assignee:
-
Target version:
Start date:
02/21/2022
Due date:
% Done:

0%

Estimated time:

Description

Die AND-Verknüpfung sieht etwas komisch aus, die prüft nur ob es irgendwelche Verknüpfungen mit follow_ups gibt, ohne die Daten mit einem JOIN zu verbinden.

Die Änderung hilft:


diff --git a/SL/FU.pm b/SL/FU.pm
index b1eaf005a..be0e39b6c 100644
--- a/SL/FU.pm
+++ b/SL/FU.pm
@ -195,8 +195,10 @@ sub follow_ups {
my @values_user = ();

if ($params{trans_id}) {
- $where .= qq| AND EXISTS (SELECT * FROM follow_up_links ful
- WHERE (ful.follow_up_id = fu.id) AND (ful.trans_id = ?))|;
+ $where .= qq| AND fu.id IN (select follow_up_id from follow_up_links where trans_id = ?)|;
@
Actions #1

Updated by Jan Büren about 3 years ago

Zusatz: Falls trans_id nur für Dokumente ist, sollte man auch die Ansicht für andere Nutzer etwas lockern, ansonsten schreiben sich konkurriend drei Mitarbeiter redundante Wiedervorlagen zum Beleg:

- if ($params{all_users}) {
+ if ($params{all_users} || $params{trans_id}) { # trans_id only for documents?

Spätestens mit einer Prüfung auf ein master-Recht sollte das erlaubt werden

Actions #2

Updated by Jan Büren about 3 years ago

  • Target version set to 3.6.1
Actions

Also available in: Atom PDF