From fd59f3e909269574365624f8ab97e0281260c8d6 Mon Sep 17 00:00:00 2001 From: rusEfi Date: Fri, 26 Jan 2018 16:36:33 -0500 Subject: [PATCH] #556 --- misc/www/forum/ext/ernadoo/qte/event/main_listener.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/misc/www/forum/ext/ernadoo/qte/event/main_listener.php b/misc/www/forum/ext/ernadoo/qte/event/main_listener.php index a6f9f4fbb2..284782861a 100644 --- a/misc/www/forum/ext/ernadoo/qte/event/main_listener.php +++ b/misc/www/forum/ext/ernadoo/qte/event/main_listener.php @@ -109,7 +109,9 @@ class main_listener implements EventSubscriberInterface { $topic_attribute = $this->request->variable('attr_id', !empty($event['post_data']['topic_attr_id']) ? \ernadoo\qte\qte::KEEP : 0, false, \phpbb\request\request_interface::POST); - $this->qte->attr_select($event['forum_id'], !empty($event['post_data']['topic_attr_user']) ? $event['post_data']['topic_attr_user'] : 0, (int) $topic_attribute, '', $event['mode']); +# old line $this->qte->attr_select($event['forum_id'], !empty($event['post_data']['topic_attr_user']) ? $event['post_data']['topic_attr_user'] : 0, (int) $topic_attribute, '', $event['mode']); +# custom version see https://github.com/rusefi/rusefi/issues/556 + $this->qte->attr_select($event['forum_id'], !empty($event['post_data']['topic_poster']) ? $event['post_data']['topic_poster'] : 0, (int) $topic_attribute, '', $event['mode']); if ($event['mode'] != 'post') {