Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions extension.driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public function appendElementBelowView(Array &$context) {
$c = Administration::instance()->getPageCallback();

// when editing a section
$c['context'][0] = $c['context'][0] ?? null;
if ($c['driver'] == 'blueprintssections' && $c['context'][0] == 'edit') {

$form = Administration::instance()->Page->Form;
Expand Down Expand Up @@ -114,6 +115,7 @@ public function __action(Array &$context) {
self::appendElementBelowView($context);

// if the clone button was hit
$_POST['action']= $_POST['action'] ?? null;
if (is_array($_POST['action']) && isset($_POST['action']['clone'])) {
$c = Administration::instance()->getPageCallback();

Expand Down
8 changes: 7 additions & 1 deletion extension.meta.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<extension id="duplicate_section" status="released" xmlns="http://getsymphony.com/schemas/extension/1.0">
<name>Duplicate Section</name>
<description>Easily duplicate/clone your section parameters and fields</description>
<repo type="github">https://github.com/Solutions-Nitriques/duplicate_section</repo>
<repo type="github">https://github.com/animaux/duplicate_section</repo>
<url type="discuss">https://www.getsymphony.com/discuss/thread/73413/</url>
<types>
<type>Workflow</type>
Expand All @@ -27,6 +27,12 @@
<!-- None -->
</dependencies>
<releases>
<release version="1.3.2" date="2021-12-16" min="2.7.10" max="2.7.x">
- PHP8 fixes (requires PHP7)
</release>
<release version="1.3.1" date="2019-06-13" min="2.3" max="2.7.x">
- Add german language
</release>
<release version="1.3.0" date="2019-04-12" min="2.3" max="2.7.x">
- Remove section dates
</release>
Expand Down
28 changes: 28 additions & 0 deletions lang/lang.de.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?php

$about = array(
'name' => 'Deutsch',
'author' => array(
'name' => 'Alexander Rutz',
'email' => 'ar@animaux.de',
'website' => 'http://www.animaux.de/'
),
'release-date' => '2019-06-13',
);


/**
* Save and return
*/
$dictionary = array(

'Easily duplicate/clone your section parameters and fields' =>
'Bereiche mit ihren Einstellungen und Feldern einfach duplizieren',


'Clone' =>
'Duplizieren',

'Duplicate this section' =>
'Diesen Bereich duplizieren'
);