Soma Posted February 16, 2013 Share Posted February 16, 2013 There's an 500 server error shown (white page) when I select the page itself in a page field and save page. Could this be avoided? Link to comment Share on other sites More sharing options...
Pete Posted February 16, 2013 Share Posted February 16, 2013 I wonder if that is a recursion issue. Link to comment Share on other sites More sharing options...
ryan Posted February 17, 2013 Share Posted February 17, 2013 In this case, I'm not currently sure how to prevent the circular reference other than disallowing a page from selecting itself. Or rather, having the fieldtype's sanitizeValue method remove the incompatibile value automatically before saving. Not sure if that's what you were looking for? Link to comment Share on other sites More sharing options...
Luis Posted February 17, 2013 Share Posted February 17, 2013 Soma could this be the same problem I faced yesterday? http://processwire.com/talk/topic/2818-i-think-i-build-a-loop-in-my-submit-form-but-where/ I solved it by saving each field on its own and not the entire page 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