Skip to content

Commit

Permalink
fix(Users) tag cloud edit error and show
Browse files Browse the repository at this point in the history
  • Loading branch information
joebordes committed Aug 12, 2016
1 parent e131260 commit cf82f49
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions modules/Users/DetailView.php
Expand Up @@ -161,10 +161,12 @@
$smarty->assign("VALIDATION_DATA_FIELDLABEL",$data['fieldlabel']);
$smarty->assign("MODULE", 'Users');
$smarty->assign("CURRENT_USERID", $current_user->id);
$smarty->assign("HOMEORDER",$focus->getHomeStuffOrder($focus->id));
//Added to provide User based Tagcloud
$smarty->assign("TAGCLOUDVIEW",getTagCloudView($focus->id));
$smarty->assign("SHOWTAGAS",$mod_strings[getTagCloudShowAs($focus->id)]);
$HomeValues = $focus->getHomeStuffOrder($focus->id);
$smarty->assign("TAGCLOUDVIEW",$HomeValues['Tag Cloud']);
$smarty->assign("SHOWTAGAS",$HomeValues['showtagas']);
unset($HomeValues['Tag Cloud']);
unset($HomeValues['showtagas']);
$smarty->assign("HOMEORDER",$HomeValues);
$smarty->assign("BLOCKS", getBlocks($currentModule,"detail_view",'',$focus->column_fields));
$smarty->assign("USERNAME", getFullNameFromArray('Users', $focus->column_fields));
$smarty->assign("HOUR_FORMAT",$focus->hour_format);
Expand Down
2 changes: 1 addition & 1 deletion modules/Users/Users.php
Expand Up @@ -1009,7 +1009,7 @@ function getHomeStuffOrder($id) {
if($id == '' && isset($this->column_fields['tagcloudview'])){
$return_array['Tag Cloud'] = $this->column_fields['tagcloudview'];
}else{
$return_array['Tag Cloud'] = (getTagCloudView($id) ? 'true' : 'false');
$return_array['Tag Cloud'] = getTagCloudView($id);
}
if($id == '' && isset($this->column_fields['showtagas'])){
$return_array['showtagas'] = $this->column_fields['showtagas'];
Expand Down

0 comments on commit cf82f49

Please sign in to comment.