任务单 #6589

管理メニューの一般設定でのtextareaの表示不具合
开放日期: 2005-08-31 14:17 最后更新: 2005-09-05 05:32

报告人:
属主:
类型:
状态:
关闭
组件:
(无)
里程碑:
(无)
优先:
5 - Medium
严重性:
5 - Medium
处理结果:
Fixed
文件:

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);
}

任务单历史 (1/1 Histories)

2005-09-05 05:32 Updated by: onokazu
  • Ticket Close date is changed to 2005-09-05 05:32
  • 属主 Update from (无) to onokazu
  • 处理结果 Update from to Fixed
  • 状态 Update from 开启 to 关闭
评论
Logged In: YES
user_id=754

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

Attachment File List

No attachments

编辑

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