commit b6fd7a524f42164557c162276b04490fb0bd02b1
parent e66439fe49b63f0a0d6025cd1e6d399bc3706583
Author: Felicitus <felicitus@felicitus.org>
Date: Mon, 13 Jul 2015 23:40:32 +0200
Also override the create action in order to read the associations back in correctly
Diffstat:
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/src/PartKeepr/FrontendBundle/Resources/public/js/ExtJS/Bugfixes/Ext.data.Model-EXTJS-15037.js b/src/PartKeepr/FrontendBundle/Resources/public/js/ExtJS/Bugfixes/Ext.data.Model-EXTJS-15037.js
@@ -86,6 +86,20 @@ Ext.define('PartKeepr.data.operation.Update', {
}
});
+Ext.define('PartKeepr.data.operation.Create', {
+ override: 'Ext.data.operation.Create',
+
+ action: 'create',
+
+ isCreateOperation: true,
+
+ order: 10,
+ doProcess: Ext.emptyFn,
+ doExecute: function() {
+ return this.getProxy().create(this);
+ }
+});
+
Ext.define("PartKeepr.data.schema.Role", {
override: "Ext.data.schema.Role",
@@ -176,7 +190,6 @@ Ext.define("PartKeepr.data.proxy.Proxy", {
override: "Ext.data.proxy.Proxy",
batch: function (options, /* deprecated */listeners) {
- console.log(options);
return this.callParent(arguments);
}
});
\ No newline at end of file