Move "back to profile" link from Account Profile Layout template into the View template. Added the can_edit_profile template variable to common template variables for the Profile plugin.
This commit is contained in:
parent
0406e82546
commit
2adc7a24e2
4 changed files with 7 additions and 3 deletions
|
|
@ -2,6 +2,7 @@
|
|||
- fixed #11884: Editing Templates impossible / Code editor not loaded
|
||||
- recommitted ukplayer. Removal broke Matrix. Licencing information was available but overlooked.
|
||||
- fixed #11883: Wiki "Add page" link does not encode special chars
|
||||
- fixed #11886: profile knows it's me, but doesn't display edit
|
||||
|
||||
7.10.1
|
||||
- fixed #11851: Story Topic: top story variables should be available all the time
|
||||
|
|
|
|||
|
|
@ -3,6 +3,10 @@ templates, you will need to apply these changes manually to your copies.
|
|||
|
||||
7.10.1
|
||||
|
||||
* Profile templates - root/import/account/profile/default-view-profile-template
|
||||
- root/import/account/profile/profile-account-layout
|
||||
Moved the "back to profile" link from the Profile View template to the Profile Layout template.
|
||||
|
||||
* Asset Report Template - asset-report/asset-report-default-template
|
||||
Remove the empty template attachment
|
||||
|
||||
|
|
|
|||
BIN
docs/upgrades/packages-7.10.1/root_import_account_profile.wgpkg
Normal file
BIN
docs/upgrades/packages-7.10.1/root_import_account_profile.wgpkg
Normal file
Binary file not shown.
|
|
@ -83,7 +83,8 @@ sub appendCategoryVars {
|
|||
$var->{'profile_category_'.$categoryId."_shortLabel"} = $shortCategoryLabel;
|
||||
$var->{'profile_category_'.$categoryId."_index" } = $index;
|
||||
$var->{'profile_category_'.$categoryId."_fields" } = $fields;
|
||||
|
||||
|
||||
$var->{'can_edit_profile' } = $self->uid eq $self->session->user->userId;
|
||||
|
||||
#Update the isActive flag to determine the default active tab
|
||||
$self->store->{hasActiveTab} = ($self->store->{hasActiveTab} || $isActive);
|
||||
|
|
@ -472,8 +473,6 @@ sub www_view {
|
|||
|
||||
$self->appendCommonVars($var);
|
||||
|
||||
$var->{'can_edit_profile' } = $uid eq $session->user->userId;
|
||||
|
||||
my $privacySetting = $user->profileField('publicProfile') || 'none';
|
||||
$var->{"profile_privacy_$privacySetting"} = "true";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue