@@ -440,6 +440,15 @@ class Moderate extends Page
}
+ foreach ($topics as $topic) {
+ if (
+ $this->firstTopic !== $topic
+ && $topic->poll_type > 0
+ ) {
+ return $this->c->Message->message('Poll cannot be attached');
+ }
+
switch ($v->step) {
case 1:
$this->formTitle = 'Merge topics title';
@@ -267,3 +267,6 @@ msgstr "When sending email there was an error. Please try again later."
msgid "Confirm your email address"
msgstr "First, please <a href=\"%s\">confirm</a> your email address."
+msgid "Poll cannot be attached"
+msgstr "Topic with a poll cannot be attached to another topic."
@@ -287,3 +287,6 @@ msgstr "При отправке письма возникла ошибка. По
msgstr "Вначале, пожалуйста, <a href=\"%s\">подтвердите</a> свой электронный адрес."
+msgstr "Тему с опросом нельзя прикрепить к другой теме."