Quantcast
Channel: jQuery Library for SharePoint Web Services
Viewing all articles
Browse latest Browse all 6517

New Post: Bug for CreateContentType

$
0
0

Fredrik:

No, it's not you being tired. It looks like I started to fix it in v0.7.2, but didn't fully.

// WEBS OPERATIONScase"Webs.CreateContentType":
    addToPayload(opt, ["displayName", "parentType", "newFields", "contentTypeProperties"]);break;

Most of the Web Services operations have unique names. In the cases where they don't, I've had to come up with something.

If you need a patch, I'd suggest this:

WSops.CreateContentType = [LISTS, true];
WSops.WebsCreateContentType = [WEBS, true];// LISTS OPERATIONScase"CreateContentType":
addToPayload(opt, ["listName", "displayName", "parentType", "fields", "contentTypeProperties", "addToView"]);break;// WEBS OPERATIONScase"WebsCreateContentType":
addToPayload(opt, ["displayName", "parentType", "newFields", "contentTypeProperties"]);break;

I can also make that change in my working version, so you'll be fine when I do the next release.

Let me know what you think.

M.


Viewing all articles
Browse latest Browse all 6517

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>