Skip to content

Commit f28dc03

Browse files
committed
Merge remote-tracking branch 'origin/2.0' into 2.x
2 parents 4809cf8 + 720b3e6 commit f28dc03

File tree

13 files changed

+41
-16
lines changed

13 files changed

+41
-16
lines changed

.github/ci/files/config/bundles.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22

33
return [
44
'Pimcore\\Bundle\\AdminBundle\\PimcoreAdminBundle' => ['all' => true],
5+
'Pimcore\\Bundle\\SeoBundle\\PimcoreSeoBundle' => ['all' => true],
56
];

public/js/pimcore/layout/portal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ pimcore.layout.portal = Class.create({
121121
this.panel = Ext.create('Portal.view.PortalPanel', {
122122
id: "pimcore_portal_" + this.key,
123123
layout: 'column',
124-
title: this.key == "welcome" ? t("welcome") : this.key,
124+
title: t(this.key),
125125
border: true,
126126
bodyCls: 'x-portal-body',
127127
iconCls: "pimcore_icon_welcome",

public/js/pimcore/layout/toolbar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ pimcore.layout.toolbar = Class.create({
8989
var data = Ext.decode(response.responseText);
9090
for (var i = 0; i < data.length; i++) {
9191
this.dashboardMenu.menu.add({
92-
text: data[i],
92+
text: t(data[i]),
9393
iconCls: "pimcore_nav_icon_dashboards",
9494
itemId: 'pimcore_menu_file_dashboards_custom_' + data[i],
9595
handler: function (key) {

public/js/pimcore/object/quantityvalue/unitsettings.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ pimcore.object.quantityValue.unitsettings = Class.create({
183183
try {
184184
baseUnitStore.reload({
185185
page: this.store.currentPage,
186-
start: 1,
186+
start: 0,
187187
limit: 9999
188188
});
189189
Ext.apply(baseUnitStore, {pageSize: this.pagingtoolbar.pageSize});

public/js/pimcore/object/tags/advancedManyToManyObjectRelation.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,14 @@ pimcore.object.tags.advancedManyToManyObjectRelation = Class.create(pimcore.obje
495495
plugins: [
496496
this.cellEditing,
497497
'gridfilters'
498-
]
498+
],
499+
listeners: {
500+
celldblclick: function (grid, cell, cellIndex, record) {
501+
if (cellIndex < visibleFields.length) {
502+
this.gridRowDblClickHandler(grid, record);
503+
}
504+
}.bind(this)
505+
}
499506
});
500507

501508
if (!readOnly) {

public/js/pimcore/object/tags/advancedManyToManyRelation.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,14 @@ pimcore.object.tags.advancedManyToManyRelation = Class.create(pimcore.object.tag
467467
plugins: [
468468
this.cellEditing,
469469
'gridfilters'
470-
]
470+
],
471+
listeners: {
472+
celldblclick: function (grid, cell, cellIndex, record) {
473+
if (cellIndex < visibleFields.length) {
474+
this.gridRowDblClickHandler(grid, record);
475+
}
476+
}.bind(this)
477+
}
471478
});
472479

473480
this.component.on("rowcontextmenu", this.onRowContextmenu.bind(this));

public/js/pimcore/object/tags/localizedfields.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ pimcore.object.tags.localizedfields = Class.create(pimcore.object.tags.abstract,
316316
border: false,
317317
padding: "10px",
318318
items: items,
319-
hidden: (i > 0) //TODO default language
319+
hidden: (this.globalLanguage ? this.globalLanguage !== currentLanguage : i > 0)
320320
};
321321

322322
if (this.fieldConfig.height) {

public/js/pimcore/settings/thumbnail/item.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,11 @@ pimcore.settings.thumbnail.item = Class.create({
153153
name: "preserveColor",
154154
boxLabel: t("preserve_color") + " (Imagick, ORIGINAL)",
155155
checked: this.data.preserveColor
156+
}, {
157+
xtype: "checkbox",
158+
name: "forceProcessICCProfiles",
159+
boxLabel: t("force_process_ICC_profiles") + " (Imagick, ORIGINAL)",
160+
checked: this.data.forceProcessICCProfiles
156161
}, {
157162
xtype: "checkbox",
158163
name: "preserveMetaData",

src/Helper/GridHelperService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,7 @@ public function prepareAssetListingForGrid(array $allParams, User $adminUser): M
838838
$value = '(' . implode(',', $quoted) . ')';
839839
} elseif ($operator == 'BETWEEN') {
840840
} else {
841-
$value = $db->quote($value);
841+
$value = $db->quote((string)$value);
842842
}
843843

844844
if (isset($filterDef[1]) && $filterDef[1] == 'system') {

templates/admin/login/two_factor_authentication.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</div>
1212
{% endif %}
1313

14-
<form method="post" action="{{ path('pimcore_admin_2fa-verify') }}">
14+
<form method="post" action="{{ path('pimcore_admin_2fa_verify') }}">
1515
<input name="_auth_code" id="_auth_code" autocomplete="one-time-code" type="password" placeholder="{{ '2fa_code'|trans([],'admin') }}" required autofocus>
1616
<input type="hidden" name="csrfToken" value="{{ pimcore_csrf.getCsrfToken(app.request.session) }}">
1717

0 commit comments

Comments
 (0)