From da226fe4b453a29d047473c42ea8e17c21ceb431 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Thu, 3 May 2007 12:54:18 +0000 Subject: [PATCH] After successful "new" has added a record, set next operation to "edit". Allows immediate editing of a newly added record. --- web/htdocs/details/edit.mc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/htdocs/details/edit.mc b/web/htdocs/details/edit.mc index 73a938a..e813ae0 100644 --- a/web/htdocs/details/edit.mc +++ b/web/htdocs/details/edit.mc @@ -1,4 +1,4 @@ -%# $Id: edit.mc,v 1.33 2007-05-03 12:43:04 mike Exp $ +%# $Id: edit.mc,v 1.34 2007-05-03 12:54:18 mike Exp $ <%args> $op $id => undef ### should be extracted using utf8param() @@ -380,6 +380,7 @@ foreach my $ref (@fields) { +% $op = "edit" if $op eq "new" && defined $update; % $id = $newid if defined $newid; % if (defined $id) { -- 1.7.10.4