Projekt

Allgemein

Profil

GX-Bug #52485 » MoneyOrderOrderStatusFix.patch

Till Tepelmann, 11.07.2017 18:56

Unterschiede anzeigen:

src/includes/modules/payment/moneyorder.php (revision )
89 89

  
90 90
	function after_process() {
91 91
		global $insert_id;
92
		if ($this->order_status)
92
		if($this->order_status)
93
			xtc_db_query("UPDATE ".TABLE_ORDERS." SET orders_status='".$this->order_status."' WHERE orders_id='".$insert_id."'");
94

  
93
		{
94
			xtc_db_query("UPDATE " . TABLE_ORDERS . " SET orders_status='" . $this->order_status . "' WHERE orders_id='"
95
			             . $insert_id . "'");
96
			xtc_db_query("INSERT INTO " . TABLE_ORDERS_STATUS_HISTORY . " SET orders_status_id='" . $this->order_status
97
			             . "', orders_id='" . $insert_id . "', date_added='" . date("Y-m-d H:i:s") . "'");
98
		}
95 99
	}
96 100

  
97 101
	function get_error() {
    (1-1/1)