Don´t show hidden profile fields

This commit is contained in:
Lucas Bartholemy 2014-06-18 09:02:36 +02:00
parent 6ba5326fa3
commit 78360b7824

View File

@ -204,7 +204,7 @@ class Profile extends HActiveRecord
{
$fields = array();
foreach (ProfileField::model()->findAllByAttributes(array('profile_field_category_id' => $category->id), array('order' => 'sort_order')) as $field) {
foreach (ProfileField::model()->findAllByAttributes(array('profile_field_category_id' => $category->id, 'visible' => 1), array('order' => 'sort_order')) as $field) {
if ($field->getUserValue($this->user) != "") {
$fields[] = $field;