Ticket #6589

管理メニューの一般設定でのtextareaの表示不具合
Eröffnet am: 2005-08-31 14:17 Letztes Update: 2005-09-05 05:32

Auswertung:
Verantwortlicher:
Typ:
Status:
Geschlossen
Komponente:
(Keine)
Meilenstein:
(Keine)
Priorität:
5 - Mittel
Schweregrad:
5 - Mittel
Lösung:
Gefixt
Datei:
Keine

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-Verlauf (1/1 Historien)

2005-09-05 05:32 Aktualisiert von: onokazu
  • Ticket Close date is changed to 2005-09-05 05:32
  • Verantwortlicher Update from (Keine) to onokazu
  • Lösung Update from Keine to Gefixt
  • Status Update from Offen to Geschlossen
Kommentar
Logged In: YES
user_id=754

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

Dateianhangliste

Keine Anhänge

Bearbeiten

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