[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: =?utf-8?q?=5Bwebsites/jointhegame-kde-org=5D_protected/models=3A?=
From: Emil Sedgh <emilsedgh () gmail ! com>
Date: 2011-06-05 8:35:07
Message-ID: 20110605083507.1DE7BA60A4 () git ! kde ! org
[Download RAW message or body]
Git commit d015ef0b2b9a596d8096394ea6bc6c2e429bd096 by Emil Sedgh.
Committed on 05/06/2011 at 10:35.
Pushed by esedgh into branch 'master'.
Fixing a bug where admin couldnt change method of a payment
M +2 -1 protected/models/Payment.php
http://commits.kde.org/websites/jointhegame-kde-org/d015ef0b2b9a596d8096394ea6bc6c2e429bd096
diff --git a/protected/models/Payment.php b/protected/models/Payment.php
index f35e53a..055689b 100644
--- a/protected/models/Payment.php
+++ b/protected/models/Payment.php
@@ -101,7 +101,8 @@ Class Payment Extends CActiveRecord {
if(!$this->status)
$this->status = self::Done;
- $this->setAttribute('method', $this->getMethod());
+ if(!$this->method)
+ $this->setAttribute('method', $this->getMethod());
return parent::save($runValidations);
}
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic