Skip to content
Permalink
Browse files

Fix incorrect redirect

  • Loading branch information...
steirico committed Apr 26, 2019
1 parent d0ab84d commit f05fee695e9f97bd10c704991c783fff0649c853
Showing with 17 additions and 16 deletions.
  1. +3 −2 composer.json
  2. +1 −1 composer.lock
  3. +1 −1 index.js
  4. +1 −1 vendor/autoload.php
  5. +7 −7 vendor/composer/autoload_real.php
  6. +4 −4 vendor/composer/autoload_static.php
@@ -1,14 +1,15 @@
{
"name": "steirico/kirby-plugin-custom-add-fields",
"description": "Custom fields for Kirby's add dialog. This plugin allows to define the fields shown on the page add dialog in a page's blueprint.",
"version": "1.0.0",
"version": "1.0.1",
"type": "kirby-plugin",
"license": "MIT",
"keywords": [
"kirby3",
"plugin",
"field",
"ro", "readonly", "read-only", "read only"
"add dialog", "add page",
"custom field", "custom add field", "custom add dialog", "custom add dialog field"
],
"authors": [
{

Some generated files are not rendered by default. Learn more.

@@ -137,7 +137,7 @@ const PAGE_CREATE_DIALOG = {
.post(this.parent + "/children", data)
.then(page => {
this.success({
route: this.$api.pages.link(this.parent),
route: page.parent ? this.$api.pages.link(page.parent.id) : '/',
message: ":)",
event: "page.create"
});
@@ -4,4 +4,4 @@
require_once __DIR__ . '/composer/autoload_real.php';
return ComposerAutoloaderInit57a75402f6ab831c1bc0aa7aeb0d0111::getLoader();
return ComposerAutoloaderInit98b27033413c2529b3e6c831cfefa4f9::getLoader();
@@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer
class ComposerAutoloaderInit57a75402f6ab831c1bc0aa7aeb0d0111
class ComposerAutoloaderInit98b27033413c2529b3e6c831cfefa4f9
{
private static $loader;
@@ -19,15 +19,15 @@ public static function getLoader()
return self::$loader;
}
spl_autoload_register(array('ComposerAutoloaderInit57a75402f6ab831c1bc0aa7aeb0d0111', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInit98b27033413c2529b3e6c831cfefa4f9', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
spl_autoload_unregister(array('ComposerAutoloaderInit57a75402f6ab831c1bc0aa7aeb0d0111', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInit98b27033413c2529b3e6c831cfefa4f9', 'loadClassLoader'));
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
if ($useStaticLoader) {
require_once __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInit57a75402f6ab831c1bc0aa7aeb0d0111::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInit98b27033413c2529b3e6c831cfefa4f9::getInitializer($loader));
} else {
$map = require __DIR__ . '/autoload_namespaces.php';
foreach ($map as $namespace => $path) {
@@ -48,19 +48,19 @@ public static function getLoader()
$loader->register(true);
if ($useStaticLoader) {
$includeFiles = Composer\Autoload\ComposerStaticInit57a75402f6ab831c1bc0aa7aeb0d0111::$files;
$includeFiles = Composer\Autoload\ComposerStaticInit98b27033413c2529b3e6c831cfefa4f9::$files;
} else {
$includeFiles = require __DIR__ . '/autoload_files.php';
}
foreach ($includeFiles as $fileIdentifier => $file) {
composerRequire57a75402f6ab831c1bc0aa7aeb0d0111($fileIdentifier, $file);
composerRequire98b27033413c2529b3e6c831cfefa4f9($fileIdentifier, $file);
}
return $loader;
}
}
function composerRequire57a75402f6ab831c1bc0aa7aeb0d0111($fileIdentifier, $file)
function composerRequire98b27033413c2529b3e6c831cfefa4f9($fileIdentifier, $file)
{
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
require $file;
@@ -4,7 +4,7 @@
namespace Composer\Autoload;
class ComposerStaticInit57a75402f6ab831c1bc0aa7aeb0d0111
class ComposerStaticInit98b27033413c2529b3e6c831cfefa4f9
{
public static $files = array (
'1c83898f2b0e17b36175af8557e2bb31' => __DIR__ . '/../..' . '/config.php',
@@ -34,9 +34,9 @@ class ComposerStaticInit57a75402f6ab831c1bc0aa7aeb0d0111
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInit57a75402f6ab831c1bc0aa7aeb0d0111::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit57a75402f6ab831c1bc0aa7aeb0d0111::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit57a75402f6ab831c1bc0aa7aeb0d0111::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInit98b27033413c2529b3e6c831cfefa4f9::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit98b27033413c2529b3e6c831cfefa4f9::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit98b27033413c2529b3e6c831cfefa4f9::$classMap;
}, null, ClassLoader::class);
}

0 comments on commit f05fee6

Please sign in to comment.
You can’t perform that action at this time.