From c9f981f9db231e717db2e2293c2fcaad20e0245e Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Wed, 15 Nov 2006 17:56:23 +0000 Subject: [PATCH] Editing a not-yet-existant ID is now OK. --- web/htdocs/details/edit.mc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); -- 1.7.10.4