silverstripe-framework/admin/client
Ingo Schommer 1e478a5378 Consistently set 'id' in FormSchema
The URL to request the schema representation is the unique identifier.
We can't default to $request->getURL() since that's different for form submissions.

The schema.schema_url key is redundant, since the identifier is already contained on the top level 'id' key.
Keeping schema_url in a schema itself makes it less portable, particularly once we transition into
generic schemas which are not reliant on a particular record context (that's only contained in the schema_url)

This also fixes the issue of form schemas not refreshing after submit,
e.g. when form fields are added or removed.
2016-10-20 15:33:50 +13:00
..
dist Merge pull request #6189 from open-sausages/pulls/4.0/split-pages-toolbar 2016-10-18 18:44:06 +13:00
lang Update translations 2016-09-23 16:14:42 +12:00
src Consistently set 'id' in FormSchema 2016-10-20 15:33:50 +13:00