Fix bad copy-paste error in deprecated method
authorjeroendedauw <jeroendedauw@gmail.com>
Wed, 29 May 2013 18:27:23 +0000 (20:27 +0200)
committerJeroen De Dauw <jeroendedauw@gmail.com>
Sat, 1 Jun 2013 00:43:16 +0000 (00:43 +0000)
Instead of passing the conditions to the update method, it was passing the write values.

Bug: 48782
Change-Id: I3d67e2b8f1d80865a21799873d7ca239db6e9678

includes/db/ORMRow.php

index ea6ff63..b21ce40 100644 (file)
@@ -369,7 +369,7 @@ class ORMRow implements IORMRow {
                $success = $dbw->update(
                        $this->table->getName(),
                        $this->getWriteValues(),
-                       $this->table->getPrefixedValues( $this->getWriteValues() ),
+                       $this->table->getPrefixedValues( $this->getUpdateConditions() ),
                        is_null( $functionName ) ? __METHOD__ : $functionName
                );