Mackski Posted February 28, 2017 Share Posted February 28, 2017 This one looks like a bug, I have no idea how it's occurring. PW is somehow managing to update the page status to 131073 from totally nu-related code: $payment = $pages->get('template=payment,id='.$payment_id); if($payment->id) $payment->payment_status = P_PAID; $payment->of(false); $payment->save(); Link to comment Share on other sites More sharing options...
Robin S Posted February 28, 2017 Share Posted February 28, 2017 I think you need to set output formatting false before you start setting values to fields: $payment = $pages->get('template=payment,id='.$payment_id); $payment->of(false); if($payment->id) $payment->payment_status = P_PAID; $payment->save(); 1 Link to comment Share on other sites More sharing options...
Mackski Posted February 28, 2017 Author Share Posted February 28, 2017 Yes that was the issue however shouldn't I get an exception? 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