Fixed fP issue with self calling

This commit is contained in:
2025-08-14 22:12:55 +03:00
parent f8b84fc94f
commit 42679eb478

View File

@@ -1,5 +1,5 @@
(P_NAME as text, optional P_FORCED_TYPE as nullable text) => let let
fP = (P_NAME as text, optional P_FORCED_TYPE as nullable text) => let
//Получаем параметр из таблицы с настройками //Получаем параметр из таблицы с настройками
GET_PARAMETER = try GET_PARAMETER = try
let let
@@ -11,7 +11,7 @@
in in
Value otherwise null, Value otherwise null,
PATH_OVERRIDE = try if P_NAME = "PATH_OVERRIDE" then null else fP("PATH_OVERRIDE") otherwise null, PATH_OVERRIDE = try if P_NAME = "PATH_OVERRIDE" then null else @fP("PATH_OVERRIDE") otherwise null,
P_TYPE = if GET_PARAMETER <> null then P_TYPE = if GET_PARAMETER <> null then
if P_FORCED_TYPE = null then GET_PARAMETER[ТИП] else P_FORCED_TYPE if P_FORCED_TYPE = null then GET_PARAMETER[ТИП] else P_FORCED_TYPE
@@ -136,3 +136,5 @@
in in
SelectCase SelectCase
in
fP