New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bard: Javascript error when enabling Link to Asset #2259

Closed
Ceepster14 opened this Issue Nov 22, 2018 · 0 comments

Comments

Projects
None yet
2 participants
@Ceepster14

Ceepster14 commented Nov 22, 2018

Activating the link to asset icon in a Bard field within a fieldset throws a JavaScript error when attempting to create a page based on the fieldset.

To Reproduce

In a fresh install of Statamic I created a new fieldset containing a Bard field. In the extras tab for the field I activated the 'link to asset' icon, set the Asst Container to use (Main Assets) and chose the img folder as the default and saved the fieldset.

I then attempted to create a new page using the fieldset. When the page is displayed, the Bard field doesn't get rendered correctly and the following JavaScript error is thrown:

bootstrap.js?v=2.11.2:1 Uncaught (in promise) TypeError: Cannot read property 'container' of undefined

Expected behavior
I would have expected the Bard field to be available in the page and I would expect to create links to assets within it

Screenshots
See below

Environment details (please complete the following information):

  • Statamic Version - 2.11.2
  • Fresh Install
  • OS: Windows 7
  • Browser: Chrome, Firefox
  • Web Server: Xampp
  • PHP Version: 7.2.9
  • Addons installed: None

Additional context
Add any other context about the problem here.
bard_error
bard_error2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment