Project

General

Profile

Bug(バグ) #223

When Member::setConfig() is executed after Member::getConfig(), it is not save correctly. (Member::getConfig()の後にMember::setConfig()を実行すると正しく保存されない)

Added by Shogo Kawahara over 12 years ago. Updated 5 months ago.

Status:
Fixed(完了)
Priority:
Normal(通常)
Target version:
Start date:
2009-11-10
Due date:
% Done:

100%

3.6 で発生するか:
Unknown (未調査)
3.8 で発生するか:
Unknown (未調査)

Description

When Member::setConfig() is executed after Member::getConfig(), it is not save correctly.

For example:

var_dump($member->getConfig('foo')); // return NULL.

$member->setConfig('foo', 'bar');

var_dump($member->getConfig('foo')); // return NULL. 'bar' is returned correctly.

$member->setConfig('foo', 'baaar');

var_dump($member->getConfig('foo')); // return NULL. 'baaar' is returned correctly.

At this time, member_config table as follows:

mysql> select name,value from member_config;
+------------+----------------------------------+
| name       | value                            |
+------------+----------------------------------+
| foo        | bar                              |
| foo        | baaar                            |
+------------+----------------------------------+
2 rows in set (0.00 sec)

Associated revisions

Revision 16e7ea04 (diff)
Added by Shogo Kawahara over 12 years ago

fixed Member::setConfig(), bacause it's executed after Member::getConfig(), it is not save correctly (fixes #223)

History

#1 Updated by Shogo Kawahara over 12 years ago

  • Target version set to OpenPNE 3.1.5

#2 Updated by Shogo Kawahara over 12 years ago

  • Status changed from Pending Fixing(修正待ち) to Accepted(着手)
  • Assignee set to Shogo Kawahara

#3 Updated by Shogo Kawahara over 12 years ago

  • Status changed from Accepted(着手) to Pending Review(レビュー待ち)

更新履歴commit:"16e7ea040bc8092c13a5fcdbd871c1482b8394cb"で適用されました。

#4 Updated by Kousuke Ebihara over 12 years ago

  • Status changed from Pending Review(レビュー待ち) to Fixed(完了)
  • % Done changed from 0 to 100

#5 Updated by Charleshom Charleshom about 3 years ago

  • File 129.gif added

#6 Updated by kaoru n about 3 years ago

  • File deleted (129.gif)

#7 Updated by HectorBeins HectorBeins over 2 years ago

  • File 26.gif added

#8 Updated by kaoru n over 2 years ago

  • File deleted (26.gif)

Also available in: Atom PDF