N°8772 - Form Expressions using iTop Expressions

This commit is contained in:
Eric Espie
2025-11-14 15:33:47 +01:00
parent 750b2b9cfa
commit b34566076e
2 changed files with 12 additions and 23 deletions

View File

@@ -2108,7 +2108,10 @@ class VariableExpression extends UnaryExpression
*/
public function Evaluate(array $aArgs)
{
throw new Exception('not implemented yet');
if (!isset($aArgs[$this->m_sName])) {
throw new MissingQueryArgument('Missing query argument', array('expecting'=>$this->m_sName));
}
return $aArgs[$this->m_sName];
}
/**