0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00

switched parent_id for parent

fixes #3333
This commit is contained in:
Hannah Wolfe 2014-07-20 16:39:56 +01:00
parent e42739fe97
commit 9575b25711
2 changed files with 2 additions and 2 deletions

View file

@ -190,7 +190,7 @@ function isPost(jsonData) {
function isTag(jsonData) {
return jsonData.hasOwnProperty('name') && jsonData.hasOwnProperty('slug') &&
jsonData.hasOwnProperty('description') && jsonData.hasOwnProperty('parent_id');
jsonData.hasOwnProperty('description') && jsonData.hasOwnProperty('parent');
}
module.exports.tables = db;

View file

@ -576,7 +576,7 @@ describe('Core Helpers', function () {
it('should return the slug with a prefixed /tag/ if the context is a tag', function (done) {
helpers.url.call({
name: 'the tag', slug: 'the-tag', description: null, parent_id: null
name: 'the tag', slug: 'the-tag', description: null, parent: null
}).then(function (rendered) {
should.exist(rendered);
rendered.should.equal('/tag/the-tag/');