Project

General

Profile

Bug(バグ) #848

Community::getConfigs() can't fetch default value correctly (Community::getConfigs()でデフォルト値が正しく取得できない)

Added by Shogo Kawahara over 12 years ago. Updated over 2 years ago.

Status:
New(新規)
Priority:
Normal(通常)
Assignee:
-
Target version:
Start date:
2010-03-12
Due date:
% Done:

0%

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

Description

Phenomenon (現象)

Community::getConfigs() がデフォルト値を正しく取得しない。

Cause (原因)

lib/model/doctrine/Community.class.php

デフォルト値を取得する処理が誤ってます。

    // initialize
    foreach ($configs as $key => $config)
    {   
      $result[$config['Caption']] = ''; 
      if (isset($config[$key]['Default']))
      {   
        $result[$config['Caption']] = $config[$key]['Default'];
      }   
    }   

Way to fix (修正内容)

History

#1 Updated by Shogo Kawahara over 12 years ago

  • Subject changed from Community::getConfig() can't fetch default value correctly(Community::getConfig() で to Community::getConfigs() can't fetch default value correctly (Community::getConfigs()でデフォルト値が正しく取得できない)

#2 Updated by Kousuke Ebihara almost 12 years ago

  • 3.6 で発生するか set to Yes

#3 Updated by kaoru n over 2 years ago

  • Target version set to OpenPNE 3.10.x

Also available in: Atom PDF