Ticket #6175

管理者ユーザーのときに、新規コメント投稿なのに削除ボタンの表示される
Eröffnet am: 2005-06-17 16:43 Letztes Update: 2005-06-19 01:28

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

Details

管理者しか関係ないし
そのような操作をすることはまずないので
実用上は、問題でてないと思いますが

忘れないように書いておきます

新規投稿なのだからコメント投稿の削除ボタンを
押すことはないと思いますが、
押したら、とりあえず、次の確認ボタンの表示されて動いてしま
います。

たぶん単純間違い

include/comment_form.php
のline 82
--------------------
$button_tray->addElement(new
XoopsFormButton('', 'com_dodelete',
_DELETE, 'submit'));

--------------------
の行は

line 78より前の行の、
既存IDがあったときだけ判定のところに書いた方が良いと思いま

Ticket-Verlauf (2/2 Historien)

2005-06-19 01:25 Aktualisiert von: (del#8225)
  • Verantwortlicher Update from (Keine) to nobunobu
  • Lösung Update from Keine to Accepted
2005-06-19 01:28 Aktualisiert von: (del#8225)
  • Ticket Close date is changed to 2005-06-19 01:28
  • Lösung Update from Accepted to Gefixt
  • Status Update from Offen to Geschlossen
Kommentar
Logged In: YES
user_id=8225

CVSに投入しました。
http://cvs.sourceforge.jp/cgi-bin/viewcvs.cgi/xoops/xoops2jp/html/include/comment_form.php?rev=1.2.6.2.2.1&content-type=text/vnd.viewcvs-markup

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