Location Lost when Adding Page and Using Composer

Permalink
Anyone else find when they have a pagetype that requires location, that composer will validate that, but when you add a location using Location Panel that upon return to composer the location is lost? I'm seeing "Location Saved" notice and everything in Location Panel but upon return to Composer the "You Must Set Location" validation stops publishing, and when I return to Location Panel there is no location set.

I have done some changes to Composer on my dev site so just want to see if anyone else experiences this before reporting as a bug.

 
maar replied on at Permalink Reply
maar
You have to add the "Page Location" function to your page type form!
goldhat replied on at Permalink Reply
Sure that works as a solution... but I'd still call that a malfunction. We have to do setup work to avoid basic functionality from failing? There has to be logic there that says either produce a notice in composer "Composer requires a page target for this page type" or alternatively, the saved location (in Location Panel) needs to work as it is intended to work, as in when it says "Location Saved" then the location should remain saved later when using composer.
andrew replied on at Permalink Reply
andrew
You do get this error message when you attempt to publish a page. That's already in there.

I would agree that the page location shouldn't be cleared if the control doesn't exist. That's why I've made this:

https://github.com/concrete5/concrete5-5.7.0/issues/2261...

It's true, it's generally up to you to construct these types of things in ways that aren't going to fail. You can leave page location out because for many page types it's not necessary (e.g. all the page types that only post to one spot in your site.) But if it's not there we shouldn't clear an existing location.