Grav-plugin-admin: pagemediaselect - selection disappearing after page load

Created on 12 May 2018  ·  5Comments  ·  Source: getgrav/grav-plugin-admin

Since 1.8.0 update, selected media via the pagemediaselect form field in admin is disappearing shortly after page load in admin. Media has to be reselected every time the page is opened in admin otherwise it gets removed from page frontmatter on page save. My blueprint:

        header.cards:
          name: Cards
          type: list
          style: vertical
          label: Cards
          fields:
            .image:
              type: pagemediaselect
              label: Image

Seems to happen outside of list as well. My temporary workaround is to use text instead of pagemediaselect.

bug

Most helpful comment

This is now sorted in the form plugin!

All 5 comments

As this field did receive some changes in the last release, it could be a new issue. I've asked @w00fz to take a look. Cheers!

I've just found the same issue with the filepicker field.

The filename shows up for a like a second when the page loads and then goes blank even though its clearly there in the frontmatter. I thought was going crazy...

This is most likely an issue I introduced while fixing other issues with the select field (which the filepicker field extends).

I’ll take care of this ASAP, sorry about that.

This is now sorted in the form plugin!

Same problem here with the filepicker field

Was this page helpful?
0 / 5 - 0 ratings

Related issues

CoDanny picture CoDanny  ·  3Comments

Quy picture Quy  ·  6Comments

bgambier picture bgambier  ·  6Comments

darkroastcreative picture darkroastcreative  ·  4Comments

illycz picture illycz  ·  5Comments