mirror of
https://github.com/documize/community.git
synced 2025-07-31 02:59:44 +02:00
Fix broken mata id on updatePage action
This commit is contained in:
parent
a33232dea4
commit
6817f5083e
5 changed files with 10 additions and 9 deletions
|
@ -124,6 +124,7 @@ export default Ember.Service.extend({
|
|||
updatePage: function (documentId, pageId, payload, skipRevision) {
|
||||
var revision = skipRevision ? "?r=true" : "?r=false";
|
||||
let url = `documents/${documentId}/pages/${pageId}${revision}`;
|
||||
Ember.set(payload.meta, 'id', parseInt(payload.meta.id));
|
||||
|
||||
return this.get('ajax').request(url, {
|
||||
method: 'PUT',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue