From: Mike Taylor Date: Thu, 3 May 2007 12:54:18 +0000 (+0000) Subject: After successful "new" has added a record, set next operation to "edit". X-Git-Tag: CPAN-v1.02~54^2~381 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=da226fe4b453a29d047473c42ea8e17c21ceb431;p=irspy-moved-to-github.git After successful "new" has added a record, set next operation to "edit". Allows immediate editing of a newly added record. --- 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) {