|
From: | Yngve Svendsen |
Subject: | Re: Protecting multi-line text fields |
Date: | Wed, 09 Jan 2002 15:03:02 +0100 |
At 13:54 08.01.2002 -0800, Frank Gilmurray wrote:
We running gnats 3.113.1 and gnatsweb 2.9.2. I'd like to protect some fields (like the Description) such that editors can see the current text but only add to it (and not be allowed to change what's already there). Saving the old contents and appending it to the new value (in submitedit) doesn't help because then user's don't see the old contents. I've read through (most of) the CGI.pm 2.56 documentation but couldn't find a way to do this. Does anyone know a way to protected the old contents of a multi-line text field but still be allowed to add to it?
You would probably have to rewire Gnatsweb a little bit to achieve this. Make it display the current contents directly (not in an editable form field), then add a new multiline field where users can add content. Then write a few lines of Perl to add the new contents to the old contents before the whole thing is fed to GNATS.
Yngve Svendsen Gnatsweb maintainer
[Prev in Thread] | Current Thread | [Next in Thread] |