Skip to content

Commit

Permalink
Merge pull request #46 from symphonists/integration
Browse files Browse the repository at this point in the history
Version 2.1.1
  • Loading branch information
Nils Hörrmann committed Jun 20, 2014
2 parents 047e469 + edbabff commit 60caa89
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 9 deletions.
21 changes: 14 additions & 7 deletions extension.driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,22 @@ public function adjustTable($context) {

if($callback['driver'] == 'publish' && $callback['context']['page'] == 'index') {
$contents = $context['oPage']->Contents->getChildren();
$form = $contents[0]->getChildrenByName('table');
$table = $form[0];

// check every child, since the
// form may not always be the first element
foreach ($contents as $child) {
$form = $child->getChildrenByName('table');
$table = $form[0];

if(!empty($table)) {
$table->setAttribute('data-order-entries-id', $this->field_id);
$table->setAttribute('data-order-entries-direction', $this->direction);
if(!empty($table)) {
$table->setAttribute('data-order-entries-id', $this->field_id);
$table->setAttribute('data-order-entries-direction', $this->direction);

if($this->force_sort == 'yes') {
$table->setAttribute('data-order-entries-force', 'true');
if($this->force_sort == 'yes') {
$table->setAttribute('data-order-entries-force', 'true');
}

break;
}
}
}
Expand Down
9 changes: 7 additions & 2 deletions extension.meta.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,19 @@
</author>
</authors>
<releases>
<release version="2.1.1" date="2014-06-20" min="2.4">
- Fixed table selection
<release version="2.1.0" date="2014-06-12" min="2.4">
- Fixed incorrect version number
</release>
<release version="2.0.1" date="2014-04-16" min="2.4">
- Minor fixes
- Added custom delegated pre and post ordering
</release>
<release version="2.0.0" date="2014-04-15" min="2.4">
- Symphony 2.4 compatibility
- Fix pagination maximum rows
- Force sort now automatically sets sorting
- Fixed pagination maximum rows
- Fixed force sort that now automatically sets sorting
</release>
<release version="1.10.1" date="2012-03-11" min="2.3.x" />
<release version="1.10.0" date="2012-03-09" min="2.3.x" />
Expand Down

0 comments on commit 60caa89

Please sign in to comment.