Wednesday, 27 July 2011

Bug: Flags lost when updating "Printer friendly" log page

When generating a ``printer friendly'' monthly log display, values in the ``Flag'' column were not encoded as {\tt hidden} items in the result page. If the user then did an update from this page, all checked flags would be lost. I added code to embed {\tt hidden} items for checked flags, which will propagate them back on an update. Note that due to the way we integrate the rung and flag fields on updates there is no need to embed their values as hidden fields. It's only due to the odd design of HTML/CGI which doesn't allow you distinguish the absence of an editable field from a check box not checked that we require this work-around. (Reported by user ``rhittom''.)

No comments: