Skip to content
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
7 changes: 5 additions & 2 deletions Themes/default/PersonalMessage.template.php
Original file line number Diff line number Diff line change
Expand Up @@ -536,14 +536,17 @@ function template_single_pm($message)
<option value="" disabled>---------------</option>';

// Are there any labels which can be added to this?
// The two lists below hold the same label IDs, so say which list
// this one came from. That is what applyActions() reads, and what
// loadLabelChoices() puts on the drop down for the whole folder.
if (!$message['fully_labeled']) {
echo '
<option value="" disabled>', Lang::getTxt('pm_msg_label_apply', file: 'PersonalMessage'), '</option>';

foreach (Utils::$context['labels'] as $label) {
if (!isset($message['labels'][$label['id']])) {
echo '
<option value="', $label['id'], '">', $label['name'], '</option>';
<option value="add_', $label['id'], '">', $label['name'], '</option>';
}
}
}
Expand All @@ -555,7 +558,7 @@ function template_single_pm($message)

foreach ($message['labels'] as $label) {
echo '
<option value="', $label['id'], '">&nbsp;', $label['name'], '</option>';
<option value="rem_', $label['id'], '">&nbsp;', $label['name'], '</option>';
}
}
echo '
Expand Down