X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;ds=sidebyside;f=web%2Fhtdocs%2Fdetails%2Fedit.mc;h=917c9f3f94cf438d6e17fdadf53af5ecd5f9ab2a;hb=b7b5603afb2143500f0d347bd92a9ca723f55746;hp=7f16a1bd18dba6ca9a91838a2bdf039672a3d3be;hpb=8895c1ba1ef653c59711bf5050394d61410fc38f;p=irspy-moved-to-github.git
diff --git a/web/htdocs/details/edit.mc b/web/htdocs/details/edit.mc
index 7f16a1b..917c9f3 100644
--- a/web/htdocs/details/edit.mc
+++ b/web/htdocs/details/edit.mc
@@ -1,4 +1,4 @@
-%# $Id: edit.mc,v 1.16 2006-11-16 17:14:46 mike Exp $
+%# $Id: edit.mc,v 1.17 2006-11-16 17:27:15 mike Exp $
<%args>
$id => undef
%args>
@@ -8,7 +8,6 @@ my $conn = new ZOOM::Connection("localhost:3313/IR-Explain---1", 0,
elementSetName => "zeerex");
my $rec = '
\n";
# Existing record
my $query = 'rec.id="' . cql_quote($id) . '"';
my $rs = $conn->search(new ZOOM::Query::CQL($query));
@@ -21,14 +20,13 @@ if (defined $id && $id ne "") {
} else {
# New record
- print "New record
\n";
my $host = $r->param("host");
my $port = $r->param("port");
my $dbname = $r->param("dbname");
if (!defined $host || $host eq "" ||
!defined $port || $port eq "" ||
!defined $dbname || $dbname eq "") {
- print qq[
You must specify host, port and database name
\n]; + print qq[You must specify host, port and database name.
\n]; $r->param(update => 0); } @@ -74,7 +72,7 @@ my @fields = my $nchanges = 0; my $update = $r->param("update"); -if (defined $update) { +if ($update) { # Update record with submitted data my %fieldsByKey = map { ( $_->[0], $_) } @fields; my %data;