Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setReadOnly:Error #166

Closed
GermanBob opened this issue Mar 5, 2021 · 3 comments
Closed

setReadOnly:Error #166

GermanBob opened this issue Mar 5, 2021 · 3 comments

Comments

@GermanBob
Copy link

Hi,
I try to set the Author field on an Item but I get everytime an error "Uncaught [SharepointPlus 'setReadOnly']: the list ID/Name is required"

I try this at the end:
$SP().list("Listname").setReadOnly("Author", false)
.then(function () {
$SP().list("Listname").update({ ID: 1, Author: 1478 })
});
I tried the same with add but I get the same error.

Thanks in advance

@Aymkdn
Copy link
Owner

Aymkdn commented Mar 5, 2021

There is a bug, indeed.

Let me a few minutes and I'll publish a new version that fixes it!

@Aymkdn
Copy link
Owner

Aymkdn commented Mar 5, 2021

I've just published v6.1.5 that should fix it. Please, try and if you still have issues, feel free to post here again.

@Aymkdn Aymkdn closed this as completed Mar 5, 2021
@GermanBob
Copy link
Author

Thanks,
now it works perfect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants