public inbox for gnats-devel@sourceware.org
 help / color / mirror / Atom feed
From: Mel Hatzis <hatzis@juniper.net>
To: Yngve Svendsen <yngve.svendsen@sun.com>
Cc: "'help-gnats@gnu.org'" <help-gnats@gnu.org>
Subject: patch for missing 'chek' prior to edit
Date: Sun, 09 Mar 2003 04:42:00 -0000	[thread overview]
Message-ID: <3E6AC502.409@juniper.net> (raw)

Please review the following patch which fixes a bug whereby
a 'chek' is not performed when submitting an edited PR.

I noticed that 'chek initial' is done for submitnewpr but
there's no 'chek' for submitedit. This means that field
validation based on the the field definitions in the dbconfig
is not performed for PR edits.

Here's the patch...

Index: gnatsweb.pl
===================================================================
RCS file: /cvsroot/gnatsweb/gnatsweb/gnatsweb.pl,v
retrieving revision 1.120
diff -u -p -r1.120 gnatsweb.pl
--- gnatsweb.pl 8 Jan 2003 13:04:17 -0000       1.120
+++ gnatsweb.pl 9 Mar 2003 04:37:01 -0000
@@ -1808,6 +1808,10 @@ sub submitedit

     # Submit the edits.  We need to unlock the PR even if the edit fails
     local($suppress_client_exit) = 1;
+        client_cmd("chek");
+        last LOCKED if ($client_would_have_exited);
+        client_cmd("$newpr\n.");
+        last LOCKED if ($client_would_have_exited);
        client_cmd("editaddr $db_prefs{'user'}");
        last LOCKED if ($client_would_have_exited);
     client_cmd("edit $pr");

--
Mel Hatzis



_______________________________________________
Help-gnats mailing list
Help-gnats@gnu.org
http://mail.gnu.org/mailman/listinfo/help-gnats

             reply	other threads:[~2003-03-09  4:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-09  4:42 Mel Hatzis [this message]
2003-03-16 17:48 ` Lars Henriksen
2003-03-16 20:03   ` Mel Hatzis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3E6AC502.409@juniper.net \
    --to=hatzis@juniper.net \
    --cc=help-gnats@gnu.org \
    --cc=yngve.svendsen@sun.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).