Fixed fP issue with self calling
This commit is contained in:
@@ -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
|
||||||
Reference in New Issue
Block a user