Skip to content

Commit 8700fa4

Browse files
4.3.3
Signed-off-by: Diego Andrés <diegoandres_cortes@outlook.com>
1 parent db176b6 commit 8700fa4

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
### 4.3.3 - 12 November 2023
4+
- ![New Feature](https://smftricks.com/assets/changelog/tag--plus.png) Pre-select filtered prefixes when posting a new poll in boards.
5+
36
### 4.3.2 - 05 July 2023
47
- ![Bug Fix](https://smftricks.com/assets/changelog/bug--minus.png) Fixed modifying 'New Topic' url when it's not set.
58

Sources/PostPrefix/Integration/MessageIndex.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,10 @@ public function topics_prefixes() : void
236236
if (isset($_REQUEST['prefix']) && !empty($_REQUEST['prefix']) && $context['can_post_new'])
237237
$context['normal_buttons']['new_topic']['url'] .= ';prefix=' . $_REQUEST['prefix'];
238238

239+
// Do the same for polls
240+
if (isset($_REQUEST['prefix']) && !empty($_REQUEST['prefix']) && $context['can_post_poll'])
241+
$context['normal_buttons']['post_poll']['url'] .= ';prefix=' . $_REQUEST['prefix'];
242+
239243
// Okay, search the prefixes
240244
if (($context['prefixes']['filter'] = cache_get_data('prefix_filter_b' . $board, 3600)) === null)
241245
{

package-info.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<package-info xmlns="http://www.simplemachines.org/xml/package-info" xmlns:smf="http://www.simplemachines.org/">
44
<id>smftricks:postprefix</id>
55
<name>SMF Post Prefix</name>
6-
<version>4.3.2</version>
6+
<version>4.3.3</version>
77
<type>modification</type>
88
<install for="2.1 - 2.1.99">
99
<!-- Throw error if PHP version too old -->

0 commit comments

Comments
 (0)