Permalink
Browse files

Fixing aparent bug where configuration and operand options for engine…

…'s arithmetic base are messed up
  • Loading branch information...
1 parent 1f250f6 commit f0774df9825c28e38a5910c4b007abbd3411e1f2 @lorenzo committed Nov 3, 2009
Showing with 6 additions and 1 deletion.
  1. +6 −1 vendors/ezc/Workflow/src/interfaces/node_arithmetic_base.php
View
7 vendors/ezc/Workflow/src/interfaces/node_arithmetic_base.php
@@ -95,6 +95,11 @@ public function execute( ezcWorkflowExecution $execution )
);
}
+ if ( is_string( $this->configuration ) )
+ {
+ $this->operand = $execution->getVariable( $this->configuration );
+ }
+
if ( is_numeric( $this->configuration['operand'] ) )
{
$this->operand = $this->configuration['operand'];
@@ -136,4 +141,4 @@ public function execute( ezcWorkflowExecution $execution )
*/
abstract protected function doExecute();
}
-?>
+?>

0 comments on commit f0774df

Please sign in to comment.