Skip to content

Commit

Permalink
Merge branch '5.3'
Browse files Browse the repository at this point in the history
* 5.3:
  Update changelog for 5.3.10 release
  [AdminBundle] Fix unnecessary collapsing of top-nav when zooming
  [FormBundle] previous bugfix to avoid empty rows caused another bug (#2614)
  [PagepartBundle] Fixed not being able to search for translated names of PageParts
  • Loading branch information
acrobat committed Jan 19, 2020
2 parents dbb0f43 + e92fb11 commit 1162268
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG-5.X.md
@@ -1,5 +1,11 @@
# Changelog

## 5.3.10 / 2020-01-19

* [AdminBundle] Fix unnecessary collapsing of top-nav when zooming [#2615](https://github.com/Kunstmaan/KunstmaanBundlesCMS/pull/2615) ([@dbeerten](https://github.com/dbeerten))
* [FormBundle] previous bugfix to avoid empty rows caused another bug [#2614](https://github.com/Kunstmaan/KunstmaanBundlesCMS/pull/2614) ([@Numkil](https://github.com/Numkil))
* [PagepartBundle] Fixed not being able to search for translated names of PageParts [#2588](https://github.com/Kunstmaan/KunstmaanBundlesCMS/pull/2588) ([@poveu](https://github.com/poveu))

## 5.3.9 / 2020-01-15

* [FormBundle] fix export formsubmissions if pagepart order got changed on the form page [#2613](https://github.com/Kunstmaan/KunstmaanBundlesCMS/pull/2613) ([@Numkil](https://github.com/Numkil))
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/Kunstmaan/AdminBundle/Resources/ui/js/_app-top-nav.js
Expand Up @@ -27,7 +27,8 @@ kunstmaanbundles.topNav = (function($, window, undefined) {
var navBarHeight = $navBar.height();
var singleNavBarItemHeight = $navBar.find('li:first-child').innerHeight();

if (navBarHeight > singleNavBarItemHeight) {

if (navBarHeight > singleNavBarItemHeight + 5) { // allow error margin of 5px
$navBar.addClass(collapseClass);
} else {
$navBar.removeClass(collapseClass);
Expand Down
Expand Up @@ -141,7 +141,7 @@ public function buildIterator()
'language' => $submission->getLang(),
];
foreach ($submission->getFields() as $field) {
$fieldName = preg_replace('/\d+/', '', $field->getFieldName());
$fieldName = preg_replace('/\d+/', '', $field->getFieldName()) . '' . $field->getSequence();
if (!$isHeaderWritten) {
$this->addExportField($fieldName, $this->translator->trans($field->getLabel()));
}
Expand Down
@@ -1,6 +1,6 @@
<div class="modal fade pp-chooser js-pp-chooser pp-search" id="pagePartModal{{ pagepartadmin.context }}" tabindex="-1" role="dialog" aria-labelledby="pagePartModalLabel"
aria-hidden="true"
data-pp-types="{{ pagepartadmin.possiblePagePartTypes|json_encode() }}"
data-pp-types="{{ pagepartadmin.possiblePagePartTypes|map(pp => {'name': pp.name|trans, 'class': pp.class, 'preview': pp.preview })|json_encode(constant('JSON_UNESCAPED_UNICODE')) }}"
>
<div class="modal-dialog" role="document">
<div class="modal-content">
Expand All @@ -20,7 +20,7 @@
<div class="modal-body clearfix">
<div class="row">
{% for pagePartType in pagepartadmin.possiblePagePartTypes %}
<div class="pp-search__item js-pp-search-item col-sm-6 col-lg-4" data-pp-name="{{ pagePartType.name }}">
<div class="pp-search__item js-pp-search-item col-sm-6 col-lg-4" data-pp-name="{{ pagePartType.name|trans }}">
{% if pagePartType.preview is defined and pagePartType.preview is not empty %}
{% set background = asset(pagePartType.preview) %}
{% else %}
Expand Down

0 comments on commit 1162268

Please sign in to comment.