From 35ca1f9b17c19fd0b774ed3307a85b58fa4b2705 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Auswo=CC=88ger?= Date: Mon, 18 Jun 2018 14:48:01 +0200 Subject: [PATCH] Copy visibility settings from start element, fixes #12 --- src/Columns.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Columns.php b/src/Columns.php index 38e001a..4ec9c01 100644 --- a/src/Columns.php +++ b/src/Columns.php @@ -139,6 +139,9 @@ public function onsubmitCallback($dc) $set['ptable'] = $activeRecord->ptable ?: 'tl_article'; $set['type'] = substr($activeRecord->type, 0, -5) . 'stop'; $set['sorting'] = $activeRecord->sorting + 1; + $set['invisible'] = $activeRecord->invisible; + $set['start'] = $activeRecord->start; + $set['stop'] = $activeRecord->stop; $set['tstamp'] = time(); \Database::getInstance()