From e96e66aa16dca5cbcdb1aef0f9499edf86f1404b Mon Sep 17 00:00:00 2001 From: "Eloy Lafuente (stronk7)" Date: Tue, 30 Jun 2015 19:56:48 +0200 Subject: [PATCH] MDL-50130 todo: Conditional code to be changed to API by MDL-50728 --- user/lib.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/user/lib.php b/user/lib.php index 31e20f6afbf..cf5c7eb929a 100644 --- a/user/lib.php +++ b/user/lib.php @@ -336,6 +336,8 @@ function user_get_user_details($user, $course = null, array $userfields = array( $formfield = new $newfield($field->id, $user->id); if ($formfield->is_visible() and !$formfield->is_empty()) { + // TODO: Part of MDL-50728, this conditional coding must be moved to + // proper profile fields API so they are self-contained. // We only use display_data in fields that require text formatting. if ($field->datatype == 'text' or $field->datatype == 'textarea') { $fieldvalue = $formfield->display_data();