Breeze / breeze.js

Breeze for JavaScript clients
MIT License
541 stars 88 forks source link

breeze.dataService.odata.js: breeze namespace missing #99

Open aelghoneimy opened 9 years ago

aelghoneimy commented 9 years ago

I think breeze namespace is missing in breeze.dataService.odata.js line 218. So instead of:

if (prop.dataType === DataType.DateTimeOffset) {

it should be

if (prop.dataType === breeze.DataType.DateTimeOffset) {

I had this issue, whenever I try to save changes to an entity with a datetime property, an error would pop up saying:

ReferenceError: DataType is not defined
Stack trace:
transformValue@https://localhost:443/path/to/breeze.dataService.odata.js:218:1

The above fix solved the problem.

Seteh commented 8 years ago

Any progress?