X-Git-Url: http://git.indexdata.com/?p=irspy-moved-to-github.git;a=blobdiff_plain;f=web%2Fhtdocs%2Fdetails%2Fedit.mc;h=28f46dbcd772b4e3864206bdcc21dc9a7415be75;hp=d6503f58cf28a65550ee8884934a88d0c0a2d851;hb=2adbce2a8c3e6a2ec0ba4df2246450f96010c580;hpb=3f7d9b17212d4f9327601df7c97e03624da51607 diff --git a/web/htdocs/details/edit.mc b/web/htdocs/details/edit.mc index d6503f5..28f46db 100644 --- a/web/htdocs/details/edit.mc +++ b/web/htdocs/details/edit.mc @@ -1,4 +1,4 @@ -%# $Id: edit.mc,v 1.10 2006-11-14 14:54:41 mike Exp $ +%# $Id: edit.mc,v 1.11 2006-11-15 17:56:23 mike Exp $ <%args> $id => undef @@ -19,8 +19,8 @@ if (!defined $id || $id eq "") { my $rs = $conn->search(new ZOOM::Query::CQL($query)); my $n = $rs->size(); if ($n == 0) { - $m->comp("/details/error.mc", - title => "Error", message => "No such ID '$id'"); + $m->comp("/details/form.mc", id => undef, conn => $conn, + rec => ''); } else { my $rec = $rs->record(0); $m->comp("/details/form.mc", id => $id, conn => $conn, rec => $rec);