diff --git a/src/front/src/components/vote/ConstructorVote/MainInfo.vue b/src/front/src/components/vote/ConstructorVote/MainInfo.vue
index ca35e67f7..241a5c8d1 100644
--- a/src/front/src/components/vote/ConstructorVote/MainInfo.vue
+++ b/src/front/src/components/vote/ConstructorVote/MainInfo.vue
@@ -20,12 +20,12 @@
Публикация новости:
Дата и время:
@@ -107,7 +107,7 @@ export default {
: {
title: '',
description: '',
- createnews: false,
+ news: false,
appoint: false,
startDate: new Date(),
endDate: new Date(),
diff --git a/src/front/src/components/vote/VoteConstructor.vue b/src/front/src/components/vote/VoteConstructor.vue
index 580c5e1e8..d6c8d0729 100644
--- a/src/front/src/components/vote/VoteConstructor.vue
+++ b/src/front/src/components/vote/VoteConstructor.vue
@@ -335,7 +335,7 @@ export default {
startDate: props.isTest ? null : new Date(),
endDate: props.isTest ? null : new Date(new Date().setDate(new Date().getDate() + 14)),
questions: [],
- createnews: false,
+ news: false,
appoint: false
});
@@ -570,7 +570,7 @@ export default {
startDate: props.isTest ? null : new Date(),
endDate: props.isTest ? null : new Date(new Date().setDate(new Date().getDate() + 14)),
questions: [],
- createnews: false,
+ news: false,
appoint: false
};
testSettings.value = {
diff --git a/src/front/src/utils/axios-api.js b/src/front/src/utils/axios-api.js
index 3243c1191..8f3c12a7d 100644
--- a/src/front/src/utils/axios-api.js
+++ b/src/front/src/utils/axios-api.js
@@ -120,7 +120,7 @@ async function createVote(voteData) {
});
- formData.append('createnews', voteData.createnews);
+ formData.append('news', voteData.news);
formData.append('title', voteData.title);
formData.append('description', voteData.description);
formData.append('startDate', new Date(voteData.startDate).toISOString());