From 1c8d09338e7d1d9295fdeb1d42b59db79b449df4 Mon Sep 17 00:00:00 2001 From: Sam Hemelryk Date: Thu, 19 Jul 2012 19:29:47 +1200 Subject: [PATCH] MDL-34285 condition: Fixed up missing operator --- lib/conditionlib.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/conditionlib.php b/lib/conditionlib.php index a76a4f46dcb..f2fe8c7c41f 100644 --- a/lib/conditionlib.php +++ b/lib/conditionlib.php @@ -806,9 +806,8 @@ abstract class condition_info_base { foreach ($this->item->conditionsfield as $field => $details) { $a = new stdclass; $a->field = $details->fieldname; - $a->operator = get_string($details->operator, 'condition'); $a->value = $details->value; - $information .= get_string('requires_user_field', 'condition', $a) . ' '; + $information .= get_string('requires_user_field_'.$details->operator, 'condition', $a) . ' '; } }