Ticket #6589

管理メニューの一般設定でのtextareaの表示不具合
오픈 날짜: 2005-08-31 14:17 마지막 업데이트: 2005-09-05 05:32

Reporter:
소유자:
Type:
Status:
Closed
Component:
(None)
MileStone:
(None)
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
Fixed
File:
None

Details

モジュールのconfigでformtype、valuetypeに'textarea'を指
定すると、管理メニューの一般設定でdisplayTareaされた状
態で表示されます。

modules/system/admin/preferences/main.php の266行で以下
のようになっているのですが

$ele = new XoopsFormTextArea($title,
$config[$i]->getVar('conf_name'),
$myts->htmlspecialchars($config[$i]->getConfValueForOutput()),
5, 50);

getConfValueForOutputメソッドで、valuetypeが'textarea'
の場合、return $this->getVar('conf_value'); が返ってい
ます。

以下のように修正すると大丈夫のようです。

if ($config[$i]->getVar('conf_valuetype') == 'array') {
// this is exceptional.. only when value type is
arrayneed a smarter way for this
$ele = ($config[$i]->getVar('conf_value') != '') ? new
XoopsFormTextArea($title,
$config[$i]->getVar('conf_name'),
$myts->htmlspecialchars(implode('|',
$config[$i]->getConfValueForOutput())), 5, 50) : new
XoopsFormTextArea($title,
$config[$i]->getVar('conf_name'), '', 5, 50);
} elseif ($config[$i]->getVar('conf_valuetype') ==
'textarea') {
$ele = new XoopsFormTextArea($title,
$config[$i]->getVar('conf_name'),
$config[$i]->getVar('conf_value', 'e'), 5, 50);
} else {
$ele = new XoopsFormTextArea($title,
$config[$i]->getVar('conf_name'),
$myts->htmlspecialchars($config[$i]->getConfValueForOutput()),
5, 50);
}

Ticket History (1/1 Histories)

2005-09-05 05:32 Updated by: onokazu
  • Ticket Close date is changed to 2005-09-05 05:32
  • 소유자 Update from (None) to onokazu
  • Resolution Update from None to Fixed
  • Status Update from Open to Closed
댓글 올리기
Logged In: YES
user_id=754

ありがとうございます。CVSにて修正いたしました。

Attachment File List

No attachments

Edit

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login