diff --git a/status.php b/status.php index ace7e222..0224be00 100644 --- a/status.php +++ b/status.php @@ -391,7 +391,21 @@ public function handle() oxDb::getDb()->Execute($query); } if($this->fcGetPostParam('txaction') == 'paid') { - $query = "UPDATE oxorder SET oxfolder = 'ORDERFOLDER_NEW', oxtransstatus = 'OK' WHERE oxid = '{$sOrderId}' AND oxtransstatus = 'INCOMPLETE' AND oxfolder = 'ORDERFOLDER_PROBLEMS'"; + $oLang = oxNew('oxLang'); + $sReplacement = $oLang->translateString('FCPO_REMARK_APPOINTED_MISSING'); + + $query = " + UPDATE + oxorder + SET + oxfolder = 'ORDERFOLDER_NEW', + oxtransstatus = 'OK', + oxremark = REPLACE(oxremark, '".$sReplacement."', '') + WHERE + oxid = '{$sOrderId}' AND + oxtransstatus IN ('INCOMPLETE', 'ERROR') AND + oxfolder = 'ORDERFOLDER_PROBLEMS' + "; oxDb::getDb()->Execute($query); }