From 8d7155fc94344a1119e4263ee3e736f437bde235 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Ho=CC=88=C3=9Fl?= Date: Sun, 3 Nov 2024 07:56:51 +0100 Subject: [PATCH] Don't fill texTemplateId anymore by default --- models/motionTypeTemplates/Manifesto.php | 2 +- models/motionTypeTemplates/Motion.php | 2 +- models/motionTypeTemplates/Statutes.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/models/motionTypeTemplates/Manifesto.php b/models/motionTypeTemplates/Manifesto.php index 1b06604727..8d260c748f 100644 --- a/models/motionTypeTemplates/Manifesto.php +++ b/models/motionTypeTemplates/Manifesto.php @@ -27,7 +27,7 @@ public static function doCreateManifestoType(Consultation $consultation): Consul $type->policySupportMotions = (string)IPolicy::POLICY_NOBODY; $type->policySupportAmendments = (string)IPolicy::POLICY_NOBODY; $type->initiatorsCanMergeAmendments = ConsultationMotionType::INITIATORS_MERGE_NEVER; - $type->texTemplateId = ($config->xelatexPath || $config->lualatexPath ? 1 : null); + $type->texTemplateId = null; $type->amendmentMultipleParagraphs = ConsultationMotionType::AMEND_PARAGRAPHS_MULTIPLE; $type->motionLikesDislikes = 0; $type->amendmentLikesDislikes = 0; diff --git a/models/motionTypeTemplates/Motion.php b/models/motionTypeTemplates/Motion.php index fc0fa1d171..af2d34dcfd 100644 --- a/models/motionTypeTemplates/Motion.php +++ b/models/motionTypeTemplates/Motion.php @@ -27,7 +27,7 @@ public static function doCreateMotionType(Consultation $consultation): Consultat $type->policySupportMotions = (string)IPolicy::POLICY_NOBODY; $type->policySupportAmendments = (string)IPolicy::POLICY_NOBODY; $type->initiatorsCanMergeAmendments = ConsultationMotionType::INITIATORS_MERGE_NEVER; - $type->texTemplateId = ($config->xelatexPath || $config->lualatexPath ? 1 : null); + $type->texTemplateId = null; $type->amendmentMultipleParagraphs = ConsultationMotionType::AMEND_PARAGRAPHS_MULTIPLE; $type->motionLikesDislikes = 0; $type->amendmentLikesDislikes = 0; diff --git a/models/motionTypeTemplates/Statutes.php b/models/motionTypeTemplates/Statutes.php index ebcae01f1c..0f6dfc6942 100644 --- a/models/motionTypeTemplates/Statutes.php +++ b/models/motionTypeTemplates/Statutes.php @@ -28,7 +28,7 @@ public static function doCreateStatutesType(Consultation $consultation): Consult $type->policySupportMotions = (string)IPolicy::POLICY_NOBODY; $type->policySupportAmendments = (string)IPolicy::POLICY_NOBODY; $type->initiatorsCanMergeAmendments = ConsultationMotionType::INITIATORS_MERGE_NEVER; - $type->texTemplateId = ($config->xelatexPath || $config->lualatexPath ? 1 : null); + $type->texTemplateId = null; $type->amendmentMultipleParagraphs = ConsultationMotionType::AMEND_PARAGRAPHS_MULTIPLE; $type->motionLikesDislikes = 0; $type->amendmentLikesDislikes = 0;