Skip to content

Commit e29f216

Browse files
Merge pull request #6977 from getkirby/release/4.6.1
4.6.1
2 parents 7cee656 + eb10e1a commit e29f216

File tree

9 files changed

+30
-19
lines changed

9 files changed

+30
-19
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "The Kirby core",
44
"license": "proprietary",
55
"type": "kirby-cms",
6-
"version": "4.6.0",
6+
"version": "4.6.1",
77
"keywords": [
88
"kirby",
99
"cms",

composer.lock

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

panel/dist/js/index.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

panel/dist/ui/FieldsSection.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"displayName":"FieldsSection","description":"","tags":{},"props":[{"name":"blueprint","type":{"name":"string"}},{"name":"lock","type":{"name":"boolean|object"}},{"name":"help","type":{"name":"string"}},{"name":"name","type":{"name":"string"}},{"name":"parent","type":{"name":"string"}},{"name":"timestamp","type":{"name":"number"}}],"component":"k-fields-section","sourceFile":"src/components/Sections/FieldsSection.vue"}
1+
{"displayName":"FieldsSection","description":"","tags":{},"props":[{"name":"blueprint","type":{"name":"string"}},{"name":"lock","type":{"name":"object|boolean"}},{"name":"help","type":{"name":"string"}},{"name":"name","type":{"name":"string"}},{"name":"parent","type":{"name":"string"}},{"name":"timestamp","type":{"name":"number"}}],"component":"k-fields-section","sourceFile":"src/components/Sections/FieldsSection.vue"}

panel/src/components/Sections/FieldsSection.vue

+3
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ import debounce from "@/helpers/debounce.js";
2929
export default {
3030
mixins: [SectionMixin],
3131
inheritAttrs: false,
32+
props: {
33+
lock: [Object, Boolean]
34+
},
3235
data() {
3336
return {
3437
fields: {},

panel/src/store/modules/content.js

+7-2
Original file line numberDiff line numberDiff line change
@@ -139,13 +139,18 @@ export default {
139139
MOVE(state, [from, to]) {
140140
// move state
141141
const model = structuredClone(state.models[from]);
142-
del(state.models, from);
143142
set(state.models, to, model);
144143

145144
// move local storage
146145
const storage = localStorage.getItem("kirby$content$" + from);
147-
localStorage.removeItem("kirby$content$" + from);
148146
localStorage.setItem("kirby$content$" + to, storage);
147+
148+
// change the context
149+
state.current = to;
150+
151+
// delete the old state
152+
localStorage.removeItem("kirby$content$" + from);
153+
del(state.models, from);
149154
},
150155
REMOVE(state, id) {
151156
del(state.models, id);

src/Http/Response.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ public function send(): string
287287
}
288288

289289
// send the content type header
290-
header('Content-Type:' . $this->type() . '; charset=' . $this->charset());
290+
header('Content-Type: ' . $this->type() . '; charset=' . $this->charset());
291291

292292
// print the response body
293293
return $this->body();

vendor/composer/InstalledVersions.php

+7-4
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,7 @@ private static function getInstalled()
322322
}
323323

324324
$installed = array();
325+
$copiedLocalDir = false;
325326

326327
if (self::$canGetVendors) {
327328
foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) {
@@ -330,9 +331,11 @@ private static function getInstalled()
330331
} elseif (is_file($vendorDir.'/composer/installed.php')) {
331332
/** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */
332333
$required = require $vendorDir.'/composer/installed.php';
333-
$installed[] = self::$installedByVendor[$vendorDir] = $required;
334-
if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) {
335-
self::$installed = $installed[count($installed) - 1];
334+
self::$installedByVendor[$vendorDir] = $required;
335+
$installed[] = $required;
336+
if (strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) {
337+
self::$installed = $required;
338+
$copiedLocalDir = true;
336339
}
337340
}
338341
}
@@ -350,7 +353,7 @@ private static function getInstalled()
350353
}
351354
}
352355

353-
if (self::$installed !== array()) {
356+
if (self::$installed !== array() && !$copiedLocalDir) {
354357
$installed[] = self::$installed;
355358
}
356359

vendor/composer/installed.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php return array(
22
'root' => array(
33
'name' => 'getkirby/cms',
4-
'pretty_version' => '4.6.0',
5-
'version' => '4.6.0.0',
6-
'reference' => NULL,
4+
'pretty_version' => '4.6.1',
5+
'version' => '4.6.1.0',
6+
'reference' => null,
77
'type' => 'kirby-cms',
88
'install_path' => __DIR__ . '/../../',
99
'aliases' => array(),
@@ -47,9 +47,9 @@
4747
'dev_requirement' => false,
4848
),
4949
'getkirby/cms' => array(
50-
'pretty_version' => '4.6.0',
51-
'version' => '4.6.0.0',
52-
'reference' => NULL,
50+
'pretty_version' => '4.6.1',
51+
'version' => '4.6.1.0',
52+
'reference' => null,
5353
'type' => 'kirby-cms',
5454
'install_path' => __DIR__ . '/../../',
5555
'aliases' => array(),

0 commit comments

Comments
 (0)