08/03/25 に NOW<now...@gmail.com> さんは書きました:
> 1.管理画面より、「リプライ時に前回の内容を引用する」チェックを外したテキストフィールドAを追加。
> 2.新規レポート画面にて、Aに値を入力し、その他の必須項目を空にして[送信する]ボタンをクリック。
> 3.入力エラー画面が表示されるが、この時Aが空になる
再現しました。バグですね。BTS にも <BTS:357> として入れておきました。
lib/kagemai/cgi/htmlhelper.rb に対する以下のパッチでどうでしょうか。
Index: htmlhelper.rb
===================================================================
--- htmlhelper.rb (revision 564)
+++ htmlhelper.rb (作業コピー)
@@ -514,7 +514,7 @@
attr = {'name' => @attr['id'], 'cols' => cols(), 'rows' => rows()}
attr.update(other)
field('textarea', attr) {
- v = @attr['quote'] ? value.to_s : ''
+ v = (@attr['quote'] || error) ? value.to_s : ''
if @attr['quote_mark'] && !error then
v = v.empty? ? '' : folding.render(nil, v).quote
end
--
FUKUOKA Tomoyuki