getgrav / getgrav/grav-plugin-admin

Blueprint File resort error

Open
#1,562 8 comments 0 reactions 1 assignee Claimed by @mahagr View on GitHub
bug
Dominant language
PHP
Stars
377
Forks
225
Avg merge
11h 51m
Merged PRs (30d)
4

Description

I'm sorry, it's me again. :)

[Latest Admin Version: Grav v1.6.0-beta.7 - Admin v1.9.0-beta.7]

There are two demo sites
![grafik](https://user-images.githubusercontent.com/4582757/50141093-e2898200-02a6-11e9-8f6b-9d70d41b7a96.png)

I add one file field (Blueprint see below) an upload a file to the Typography Page (the second page)
![grafik](https://user-images.githubusercontent.com/4582757/50141296-6f344000-02a7-11e9-8407-c5a3a5dbeb17.png)

After that I change the sorting:
![grafik](https://user-images.githubusercontent.com/4582757/50141113-f1703480-02a6-11e9-9f2d-0d7f16b3f9e8.png)

After saving, the image is no longer displayed.
![grafik](https://user-images.githubusercontent.com/4582757/50141340-87a45a80-02a7-11e9-85f9-ec8285d69399.png)

-> The path is not automatically adjusted when you re-sort

`extends@: default

form:
fields:
tabs:
fields:
content:
fields:
header.image1:
type: file
label: Image
avoid_overwriting: true
destination: '@self'
multiple: false
style: vertical
accept:
- image/jpg
- image/jpeg `

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.