mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-26 12:21:36 +03:00
Removed unused parent property from tag model
The Posts API does not strip unknown properties when dealing with relations, which meant that tags were being sent up with a `parent` property which would always cause the model to be considered "changed". This resulted in the update methods being called, and leading to unexpected behaviour. Whilst this change does fix things for the History feature, the correct fix is to update the admin-api-schema, or the input serializers such that they only allow through known and allowed properties.
This commit is contained in:
parent
04e3ee9f10
commit
11cbfcb0b6
@ -9,7 +9,6 @@ export default Model.extend(ValidationEngine, {
|
|||||||
name: attr('string'),
|
name: attr('string'),
|
||||||
slug: attr('string'),
|
slug: attr('string'),
|
||||||
description: attr('string'),
|
description: attr('string'),
|
||||||
parent: attr('string'), // unused
|
|
||||||
metaTitle: attr('string'),
|
metaTitle: attr('string'),
|
||||||
metaDescription: attr('string'),
|
metaDescription: attr('string'),
|
||||||
twitterImage: attr('string'),
|
twitterImage: attr('string'),
|
||||||
|
Loading…
Reference in New Issue
Block a user