-
14 Mar 2013 3:33 AM #1
Extjs 4.2 bug?
Extjs 4.2 bug?
After installing new Extjs 4.2, I found that the "save" method of a model stops to work.
I found a minor difference between "buildUrl" in this version:
4.1:
if (me.appendId && id)
4.2:
if (me.appendId && (id != null)) {
This is in the "Ext.data.proxy.Rest" definition object.
-
14 Mar 2013 9:04 AM #2
This is intended. Some people are sending 0 as an id, so now it explicitly checks if it's null or undefined, otherwise it will send it.
Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
-
14 Mar 2013 9:18 AM #3
-
14 Mar 2013 9:25 AM #4
It should probably check for
We'll look into it further.Code:if (id || id === 0)
Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
This duplicates another forum thread, you can visit that thread here.


Reply With Quote
