Jump to content

Recommended Posts

Posted

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();


 

 

Posted

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();

 

  • Like 1

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...