Skip to content

Commit

Permalink
version 2.0.6
Browse files Browse the repository at this point in the history
Edit-Links
  • Loading branch information
bihor committed Feb 2, 2021
1 parent 4ab3c9d commit 65a7c9c
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
5 changes: 4 additions & 1 deletion Classes/Domain/Repository/SessionRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -874,16 +874,19 @@ public function getPagesSlug($hidden)
$p_hidden = $row['hidden'];
if (($hidden == 0) || (($hidden == 1) && $p_hidden) || (($hidden == 2) && !$p_hidden)) {
$uid = $row['uid'];
$pl10n = $uid;
$sys_language_uid = $row['sys_language_uid'];
if ($sys_language_uid > 0) {
$uid = $row['l10n_parent'];
$pl10n = $uid;
$uid = $row['l10n_parent'];
}
if (!is_array($pages[$uid])) {
$pages[$uid] = [];
}
$pages[$uid][$sys_language_uid] = [];
$pages[$uid][$sys_language_uid]['hidden'] = $hidden;
$pages[$uid][$sys_language_uid]['sys_language_uid'] = $sys_language_uid;
$pages[$uid][$sys_language_uid]['pl10n'] = $pl10n;
$pages[$uid][$sys_language_uid]['title'] = $row['title'];
$pages[$uid][$sys_language_uid]['slug'] = $row['slug'];
if ($row['slug_locked'] && ($row['slug_locked'] == 1)) {
Expand Down
2 changes: 1 addition & 1 deletion Documentation/Changelog/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
Changelog
=========

Version 2.0.5:
Version 2.0.6:
Order by added to the extension list view.
Bugfix: use translated values when L>0.
Bugfix: edit page links when L>0.
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# backendtools

version 2.0.5
version 2.0.6

7 admin tools for extensions, slug, redirects, files, images and links:
extensionlist, Slug vs. RealURL, import redirects, delete unused files, images with no title, unzip and linklist.
Expand All @@ -11,7 +11,7 @@ https://docs.typo3.org/p/fixpunkt/backendtools/master/en-us/
Version 2.0.0: refactoring. See changelog:
https://docs.typo3.org/p/fixpunkt/backendtools/master/en-us/Changelog/Index.html

Version 2.0.5: order by added to the list view.
Version 2.0.6: order by added to the list view.
Bugfix: use translated values when L>0.
Bugfix: edit page links when L>0.
Bugfix: domain + language configuration.
Expand Down
2 changes: 1 addition & 1 deletion Resources/Private/Templates/Session/Realurl.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ <h1>RealURL vs. Slug</h1>
<f:for each="{paginatedpages}" as="page" iteration="iterator">
<tr{f:if(condition:iterator.isOdd, then: ' style="background-color:#fff;"')}>
<td>
<ex:editLink action="edit" table="pages" uid="{page.uid}" returnUrl="mod.php?M=tools_BackendtoolsMod1&tx_backendtools_tools_backendtoolsmod1[action]=realurl">
<ex:editLink action="edit" table="pages" uid="{page.pl10n}" language="{page.sys_language_uid}" returnUrl="mod.php?M=tools_BackendtoolsMod1&tx_backendtools_tools_backendtoolsmod1[action]=realurl">
<core:icon identifier="actions-open" size="small" />
</ex:editLink>
<a href="{page.domain}/index.php?id={page.uid}&no_cache=1" target="extern">
Expand Down
2 changes: 1 addition & 1 deletion ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
'uploadfolder' => false,
'createDirs' => '',
'clearCacheOnLoad' => false,
'version' => '2.0.5',
'version' => '2.0.6',
'constraints' =>
array (
'depends' => array (
Expand Down

0 comments on commit 65a7c9c

Please sign in to comment.