diff --git a/behavior/behavior.php b/behavior/behavior.php index bf341789..5c8dc299 100644 --- a/behavior/behavior.php +++ b/behavior/behavior.php @@ -144,6 +144,7 @@ public static function db_to_form($record) { if(isset($formdata->visibleto['user'])) { $formdata->visibletouser = $formdata->visibleto['user']; + unset($formdata->visibleto['user']); } $formdata->editableby = unserialize($record->editableby); diff --git a/behavior/index.php b/behavior/index.php index ae0903c1..917f2159 100644 --- a/behavior/index.php +++ b/behavior/index.php @@ -116,6 +116,8 @@ $permissionnames = $datalynx->get_datalynx_permission_names(); $visibleto = unserialize($behavior->visibleto); + unset($visibleto['user']); + $fieldvisible = ''; foreach ($permissionnames as $permissionid => $permissionname) { if (in_array($permissionid, $visibleto)) {