Project

General

Profile

Actions

Bug(バグ) #848

open

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

Added by Shogo Kawahara almost 15 years ago. Updated almost 5 years ago.

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

0%

Estimated time:
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 (修正内容)

Actions #1

Updated by Shogo Kawahara almost 15 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()でデフォルト値が正しく取得できない)
Actions #2

Updated by Kousuke Ebihara over 14 years ago

  • 3.6 で発生するか set to Yes
Actions #3

Updated by kaoru n almost 5 years ago

  • Target version set to OpenPNE 3.10.x
Actions

Also available in: Atom PDF