プロジェクト

全般

プロフィール

Enhancement(機能追加・改善) #1198

[optimization] プロフィール編集画面で毎回 regions.yml をパースしている

Yuki Kanほぼ14年前に追加. ほぼ14年前に更新.

ステータス:
Fixed(完了)
優先度:
Normal(通常)
担当者:
対象バージョン:
開始日:
2010-06-23
期日:
2010-06-23
進捗率:

100%


説明

Ovarview

プロフィール編集画面で毎回 regions.yml をパースしている

Way to fix

プロフィール編集画面で毎回 regions.yml をパースしていたのを修正

lib/config/config/config_handlers.ymlに以下を追加

config/regions.yml:
  class: sfSimpleYamlConfigHandler

lib/util/opFormItemGenerator.class.phpの132行目を

-$list = sfYaml::load(sfConfig::get('sf_lib_dir').'/config/config/regions.yml');
+$list = (array)include(sfContext::getInstance()->get ConfigCache()->checkConfig('config/regions.yml'));

と変更

関係しているリビジョン

リビジョン b257d6da (差分)
Yuki Kanほぼ14年前に追加

fixed:every time, regions.yml will parse on the profile edit screen.(fixes #1198)

リビジョン d581ac9e (差分)
Kousuke Ebiharaほぼ14年前に追加

removed unuseless type casting keyword (fixes #1198)

履歴

#1 Yuki Kanほぼ14年前に更新

  • ステータスAccepted(着手) から Pending Review(レビュー待ち) に変更
  • 進捗率0 から 50 に変更

更新履歴 b257d6daeea247b5b2116f18ef40ed88765dbafd で適用されました。

#2 Shogo Kawaharaほぼ14年前に更新

  • 題名【チューニング】プロフィール編集画面で毎回 regions.yml をパースしている から [optimization] プロフィール編集画面で毎回 regions.yml をパースしている に変更

#3 Shogo Kawaharaほぼ14年前に更新

  • ステータスPending Review(レビュー待ち) から Rejected(差し戻し) に変更

lib/util/opFormItemGenerator.class.php の

$list = (array)include(sfContext::getInstance()->getConfigCache()->checkConfig('config/regions.yml'));

では、 (array) キャストが必要ないかと思われます

#4 Kousuke Ebiharaほぼ14年前に更新

  • ステータスRejected(差し戻し) から Pending Review(レビュー待ち) に変更

更新履歴 d581ac9ee5722acd7d9945fc013706a794a01b98 で適用されました。

#5 Shogo Kawaharaほぼ14年前に更新

  • ステータスPending Review(レビュー待ち) から Pending Testing(テスト待ち) に変更
  • 進捗率50 から 70 に変更

#6 Kousuke Ebiharaほぼ14年前に更新

  • ステータスPending Testing(テスト待ち) から Fixed(完了) に変更
  • 進捗率70 から 100 に変更

他の形式にエクスポート: Atom PDF