Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkp/pkp-lib#10698 Notification settings missing ID fix #10757

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions templates/user/notificationSettingsForm.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,20 @@
{csrf}

{include file="controllers/notification/inPlaceNotification.tpl" notificationId="notificationSettingsFormNotification"}

{fbvFormArea id="notificationSettings"}
{foreach from=$notificationSettingCategories item=notificationSettingCategory}
<h4>{translate key=$notificationSettingCategory.categoryKey}</h4>
{foreach from=$notificationSettingCategory.settings item=settingId}
{assign var="settingName" value=$notificationSettings.$settingId.settingName}
{assign var="emailSettingName" value=$notificationSettings.$settingId.emailSettingName}
{capture assign="settingKey"}{translate key=$notificationSettings.$settingId.settingKey title="common.title"|translate}{/capture}

{if isset($notificationSettings[$settingId])}
{assign var="settingName" value=$notificationSettings.$settingId.settingName}
{assign var="emailSettingName" value=$notificationSettings.$settingId.emailSettingName}
{else}
{assign var="settingName" value="settingName_{$settingId}"}
{assign var="emailSettingName" value="emailSettingName_{$settingId}"}
{/if}
{capture assign="settingKey"}
{translate key=$notificationSettings.$settingId.settingKey title="common.title"|translate}
{/capture}
{fbvFormSection title=$settingKey list=true translate=false}
{if $settingId|in_array:$blockedNotifications}
{assign var="checked" value="0"}
Expand Down