statamic / eloquent-driver

Provides support for storing your Statamic data in a database, rather than flat files.
https://statamic.dev/tips/storing-content-in-a-database
MIT License
104 stars 73 forks source link

Allow 'hidden' blueprints to be un-hidden #166

Closed ryanmitchell closed 1 year ago

ryanmitchell commented 1 year ago

When toggling the blueprint visibility in the CP hidden it was getting stuck on 'hidden', and could not be reverted from that state. This is due to how the contents are being merged in and out of the database.

This change does a hard check on hidden before saving the model and removes it from the data being stored when not required.

I also took the opportunity to begin test coverage for blueprints.

Fixes: https://github.com/statamic/eloquent-driver/issues/159