Skip to content

EspoCRM – Open Source CRM Application

handle legacy UndefinedKey errors consistently

Osama Bashire6e8a722bbce
diff --git a/application/Espo/Core/Formula/Processor.php b/application/Espo/Core/Formula/Processor.php
index abbaf7fb8b..a028c6d5f2 100644
--- a/application/Espo/Core/Formula/Processor.php
+++ b/application/Espo/Core/Formula/Processor.php
@@ -107,10 +107,6 @@ class Processor
return $function->process($item->getArgumentList());
} catch (UndefinedKey $e) {
- if ($function instanceof DeprecatedBaseFunction) {
- throw $e;
- }
-
throw UndefinedKey::cloneWithLevelRisen($e);
} catch (TooFewArguments|BadArgumentType|BadArgumentValue $e) {
$message = sprintf('Function %s; %s', $item->getType(), $e->getLogMessage());