arjen Posted April 21, 2015 Share Posted April 21, 2015 Hi, I got a PageTable which isn't working on the user template. As a superuser everything works fine. As an editor the page from the PageTable gets saved but the but the saved page won't show up in the PageTable field. When the superuser adds the page to the PageTable field the editor can see and edit the page. No console JS errors. Triend two admin themes. Tried Chrome and Firefox. The editor role has access to both user template (view, edit, create, add) and the home template (view, edit, create, add) and has the rights page-edit and user-admin. . The PageTable config is: 1 template pointing to a template with a title and a page field I'm saving the pages under /data/ The funny thing is that when I move the PageTable field to a basic-page (or any other) template everything works as expected. When I move it back to the user template the problem is there again. It has to be some rights issue since it is working for the superuser. I've setup an account with the latest dev where a simple install shows the problem: http://bohrium-bwi.lightningpw.com/processwire/ user: editor password: test123 Try saving the PageTable field on a user. I've added the PageTable to the basic-page too, so you can see it's working there. user: superuser password: superuser1 Any pointers or can anyone confirm? Thanks in advance, Arjen Link to comment Share on other sites More sharing options...
LostKobrakai Posted April 21, 2015 Share Posted April 21, 2015 The issue is that the ajax response from "?id=1026&InputfieldPageTableField=pagetable&InputfieldPageTableAdd=1036" does not return the expected . It's responding with what seems like the body of the user edit page. 1 Link to comment Share on other sites More sharing options...
arjen Posted April 21, 2015 Author Share Posted April 21, 2015 Thanks for the feedback LostKobrakai. Is this a bug or did I misconfigure something? Link to comment Share on other sites More sharing options...
LostKobrakai Posted April 21, 2015 Share Posted April 21, 2015 That I can't answer. I think it's a bug, as it seems kinda useless to return the edit page itself instead of anything useful to be added to the table. 1 Link to comment Share on other sites More sharing options...
arjen Posted April 21, 2015 Author Share Posted April 21, 2015 I've been looking into where the querystring originates, but I'm having trouble finding out. Any pointers to which file(s) the querystring is being build? Link to comment Share on other sites More sharing options...
LostKobrakai Posted April 21, 2015 Share Posted April 21, 2015 I wouldn't necessarily think the query is wrong (can't compare as your superuser account didn't work) but rather the return value is not expected. The markup of the edit page shows up inside of the table. Link to comment Share on other sites More sharing options...
arjen Posted April 21, 2015 Author Share Posted April 21, 2015 Thanks again. I updated the correct password. Link to comment Share on other sites More sharing options...
joey102030 Posted October 2, 2015 Share Posted October 2, 2015 Whatever happened with this? I'm getting the same issue, been testing with superuser up until now so all worked fine. Now testing with a different role and I'm unable to access a custom page field in the user template. Edit: It seems to depend on the type of page field. I just changed to checkboxes and it works fine, still weird why it doesn't work with the other page field types. Link to comment Share on other sites More sharing options...
LostKobrakai Posted October 2, 2015 Share Posted October 2, 2015 @joey Can you tell us which page field didn't work and how it's set up? Link to comment Share on other sites More sharing options...
arjen Posted October 2, 2015 Author Share Posted October 2, 2015 Martijn created an issue and we have tracked it down towards to the editable() function. We might be off, but when we disable this check the PageTable works as suspected. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now