Skip to content

Commit

Permalink
Copy visibility settings from start element, fixes #12
Browse files Browse the repository at this point in the history
  • Loading branch information
ausi committed Jun 18, 2018
1 parent 4767901 commit 35ca1f9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Columns.php
Expand Up @@ -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()
Expand Down

0 comments on commit 35ca1f9

Please sign in to comment.