Skip to content

Commit 1598fad

Browse files
author
Fabian Pechstein
committed
[bug-fix] fix sql query bug, wrong columns
1 parent 67ef72d commit 1598fad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/PayoneBundle/Registry/Registry.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public function findTransactionLogsForPayoneReference($payoneReference)
161161

162162
$db = Db::get();
163163
$result = $db->fetchRow(
164-
"SELECT * FROM " . self::LOG_TABLE_NAME . " WHERE `" . self::COLUMN__PAYONE_REFERENCE . "` = ? AND (`method` = 'preauthorization' OR `method` = 'authorization') ",
164+
"SELECT * FROM " . self::LOG_TABLE_NAME . " WHERE `" . self::COLUMN__PAYONE_REFERENCE . "` = ? AND (`type` = 'preauthorization' OR `type` = 'authorization') ",
165165
[$payoneReference]
166166
);
167167

0 commit comments

Comments
 (0)