Tíquete #6589

管理メニューの一般設定でのtextareaの表示不具合
: 2005-08-31 14:17 Última Atualização: 2005-09-05 05:32

Relator:
Dono:
Tipo:
Estado:
Fechado
Componente:
(Nenhum)
Marcos:
(Nenhum)
Prioridade:
5 - Medium
Gravidade:
5 - Medium
Resolução:
Fixed
Arquivo:
Nenhum

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
  • Dono Update from (Nenhum) to onokazu
  • Resolução Update from Nenhum to Fixed
  • Estado Update from Aberto to Fechado
Comentário
Logged In: YES
user_id=754

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

Attachment File List

No attachments

Editar

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