Cheddam / SwitchFlit

A plug-and-play quick-switch UI for SilverStripe DataObjects.
BSD 3-Clause "New" or "Revised" License
6 stars 2 forks source link

Fields are not properly scrubbed #2

Closed Cheddam closed 8 years ago

Cheddam commented 8 years ago

The configuration for SwitchFlit calls for a field on each DataObject to be specified for the name and link keys. Currently the field name is kept intact and sent down the wire, along with the rest of the fields associated with the DataObject.

Only the relevant data should be returned via the API, and it should be named correctly to avoid issues in the front-end.

Cheddam commented 8 years ago

Resolved during the refactor to methods from an interface.