Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix order of periods in list table #109

Merged
merged 2 commits into from
Mar 11, 2022
Merged
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
9 changes: 5 additions & 4 deletions Classes/Controller/CheckoutController.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,14 @@ public function listAction(): void
$GLOBALS['TSFE']->no_cache = true;
}

$this->view->assign('jsConf', [
'datatables' => GeneralUtility::makeInstance(DataTablesService::class)->getConfiguration()
+ ['searching' => false, 'columnDefs' => [['targets' => 4, 'orderable' => false]], 'order' => [[1, 'asc']]]
]);
$facilities = $this->facilityRepository->findByUids(GeneralUtility::trimExplode(',', $this->settings['facility']));
$this->view->assign('facilities', $facilities);
$this->view->assign('periods', $this->periodRepository->findUpcomingAndRunningByFacilityUids(GeneralUtility::trimExplode(',', $this->settings['facility'])));
$orderColumnBegin = count($facilities) === 1 ? 0 : 1;
$this->view->assign('jsConf', [
'datatables' => GeneralUtility::makeInstance(DataTablesService::class)->getConfiguration()
+ ['searching' => false, 'columnDefs' => [['targets' => 4, 'orderable' => false]], 'order' => [[$orderColumnBegin, 'asc'], [$orderColumnBegin + 1, 'asc']]]
]);
CacheUtility::addFacilityToCurrentPageCacheTags((int)$this->settings['facility']);
}

Expand Down
30 changes: 30 additions & 0 deletions Documentation/Changelog/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,36 @@
Changelog
=========

Version 2.0.1
-------------

List of changes ::

2022-03-11 [BUGFIX] Fix order of periods in list table (Commit 78ed415 by Pascal Rinker)

This list has been created by using `git log $(git describe --tags --abbrev=0)..HEAD --abbrev-commit --pretty='%ad %s (Commit %h by %an)' --date=short`.

Version 2.0.0
-------------

List of changes ::

2022-03-10 [TASK] Fix isBookable() condition, use redirect instead of forward (Commit 952ed9c by Pascal Rinker)
2022-03-10 Merge pull request #107 from jweiland-net/typo311 (Commit db041f8 by Pascal Rinker)
2022-03-10 [TASK] Fix CheckoutServiceTest (Commit 54df921 by Pascal Rinker)
2022-03-10 [TASK] Fix fixture (Commit c508e5e by Pascal Rinker)
2022-03-10 [TASK] Remove PHP 7.2 from CI (Commit cf1982d by Pascal Rinker)
2022-03-10 [TASK] Check in formAction and createAction if period if bookable (Commit 23e0355 by Pascal Rinker)
2022-03-09 [TASK] Use Environent class instead of checking constant (Commit a6f4046 by Pascal Rinker)
2022-03-09 [TASK] Add qr-code library to composer.json and fallback without phar, fix tests for v11 (Commit 051f0e1 by Pascal Rinker)
2022-03-04 [TASK] Fix tests (Commit e05d5eb by Pascal Rinker)
2022-03-04 [TASK] Increase testing framework version (Commit e359301 by Pascal Rinker)
2022-03-04 [TASK] Update workflow (Commit 7fda09c by Pascal Rinker)
2022-02-11 [TASK] Use new way to register and configure plugin (Commit cb0a3ef by Pascal Rinker)
2022-02-11 [TASK] Add TYPO3 v11 compatibility and remove TYPO3 v9 support (Commit 7de6eda by Pascal Rinker)

This list has been created by using `git log $(git describe --tags --abbrev=0)..HEAD --abbrev-commit --pretty='%ad %s (Commit %h by %an)' --date=short`.

Version 1.2.5
-------------

Expand Down
2 changes: 1 addition & 1 deletion Documentation/Settings.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ project = reserve
# ... (recommended) version, displayed next to title (desktop) and in <meta name="book-version"
# .................................................................................

release = 1.2.5
release = 2.0.1

# .................................................................................
# ... (recommended) displayed in footer
Expand Down
2 changes: 1 addition & 1 deletion ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
'author_email' => 'projects@jweiland.net',
'author_company' => 'jweiland.net',
'state' => 'stable',
'version' => '2.0.0',
'version' => '2.0.1',
'constraints' => [
'depends' => [
'typo3' => '10.4.0-11.5.99',
Expand Down