From ab0dcfdcff15eecb8ebcc0a9a55763fa946917d0 Mon Sep 17 00:00:00 2001 From: kindlm Date: Mon, 19 Sep 2016 15:00:14 +0200 Subject: [PATCH] =?UTF-8?q?Ber=C3=BCcksichtigung=20des=20Aktiv-Attributs?= =?UTF-8?q?=20bei=20Vorlagen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/libraries/VorlageLib.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/application/libraries/VorlageLib.php b/application/libraries/VorlageLib.php index c121134fd..2e9d17d3f 100644 --- a/application/libraries/VorlageLib.php +++ b/application/libraries/VorlageLib.php @@ -121,9 +121,11 @@ class VorlageLib { $where .= "sprache = " . $this->ci->VorlageModel->escape($sprache); } + + $where .= " AND aktiv = true"; // Try to search the template with the given vorlage_kurzbz and other parameters if present - $queryParameters = array("vorlage_kurzbz" => $vorlage_kurzbz); + $queryParameters = array("vorlage_kurzbz" => $vorlage_kurzbz, "aktiv" => true); if (isset($oe_kurzbz)) {