From 8113aa5f42ac5175ea2697e472c95572c2013b7d Mon Sep 17 00:00:00 2001 From: Imo John Date: Fri, 18 Sep 2026 15:47:53 +0200 Subject: [PATCH] Bugfix, mit 39937 Problem bei KV --- .../module/rpta/prozeduren/proc_get_rpta_columns_p.sql | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src-modules/module/rpta/prozeduren/proc_get_rpta_columns_p.sql b/src-modules/module/rpta/prozeduren/proc_get_rpta_columns_p.sql index 8f03e37..cedb886 100644 --- a/src-modules/module/rpta/prozeduren/proc_get_rpta_columns_p.sql +++ b/src-modules/module/rpta/prozeduren/proc_get_rpta_columns_p.sql @@ -15,13 +15,13 @@ format_uniquename varchar(255), colfunction TEXT, column_uniquename varchar(255), description TEXT -) AS $$ +) AS ' BEGIN RETURN QUERY SELECT C.srcfieldname, -(case when string_not_null(C.targetfieldname)='' then C.srcfieldname else C.targetfieldname end) as targetfieldname, +(case when string_not_null(C.targetfieldname)='''' then C.srcfieldname else C.targetfieldname end) as targetfieldname, T.uniquename as coltype, C.is_aggregate, -(case when string_not_null(CL.caption)='' then C.caption else CL.caption end) as caption, +(case when string_not_null(CL.caption)='''' then C.caption else CL.caption end) as caption, CL.is_visible, CL.visible_size as visible_width, CL.sortnr, @@ -29,7 +29,7 @@ F.sql_code as format_sql, F.uniquename as format_uniquename, C.col_function as colfunction, C.uniquename as column_uniquename, -(case when string_not_null(CL.description)='' then C.description else CL.description end) as description +(case when string_not_null(CL.description)='''' then C.description else CL.description end) as description FROM rpta_column_layout L, rpta_column C, rpta_column_type T,rpta_column2layout CL left outer join rpta_format_code F on (F.tid=CL.format_code_id) where L.tid=CL.layout_id @@ -37,5 +37,5 @@ and C.tid=CL.column_id and T.tid=C.column_type and L.uniquename= p_column_layout_uniquename; END; -$$ LANGUAGE plpgsql; +' LANGUAGE plpgsql;