Send Netdot-devel mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        https://osl.uoregon.edu/mailman/listinfo/netdot-devel
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Netdot-devel digest..."


Today's Topics:

   1. [SCM] Netdot branch netdot-1.0 updated.
      netdot-1.0.4-1-g3e55f68 ([email protected])


----------------------------------------------------------------------

Message: 1
Date: Wed, 12 Dec 2012 08:13:52 -0800
From: [email protected]
Subject: [Netdot-devel] [SCM] Netdot branch netdot-1.0 updated.
        netdot-1.0.4-1-g3e55f68
To: [email protected]
Message-ID: <[email protected]>

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Netdot".

The branch, netdot-1.0 has been updated
       via  3e55f689ee2417e6cc5c14250cbce7b606e67cc1 (commit)
      from  95d87ce72026ac0fa564e25b1cae9a1dc88f8962 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 3e55f689ee2417e6cc5c14250cbce7b606e67cc1
Author: Carlos Vicente <[email protected]>
Date:   Wed Dec 12 11:13:29 2012 -0500

    Avoid a fatal error in search.html if criteria parameter is not passed

diff --git a/htdocs/generic/search.html b/htdocs/generic/search.html
index 0b6d9e8..65c8a3d 100644
--- a/htdocs/generic/search.html
+++ b/htdocs/generic/search.html
@@ -6,26 +6,29 @@ Performs a general search in the database, looking into every 
field of every tab
 
 
 <%args>
-$q
+$q => undef
 </%args>
 
 <%init>
 
 my %linksto;
 my $results;
-eval {
-    $results = Netdot::Model->search_all_tables($q);
-};
-if ( my $e = $@ ){
-    $m->comp("/generic/error.mhtml", error=>$e);
-}
+my $numtbls;
 my $DEBUG = 0;
-if ( $DEBUG ) {
-    print "<pre>", Dumper($results), "</pre>";
-    $m->abort;
-}
-my $numtbls = scalar keys %$results;
 
+if ( defined $q ){
+    eval {
+       $results = Netdot::Model->search_all_tables($q);
+    };
+    if ( my $e = $@ ){
+       $m->comp("/generic/error.mhtml", error=>$e);
+    }
+    if ( $DEBUG ) {
+       print "<pre>", Dumper($results), "</pre>";
+       $m->abort;
+    }
+    $numtbls = scalar keys %$results;
+}
 </%init>
 
 

-----------------------------------------------------------------------

Summary of changes:
 htdocs/generic/search.html |   27 +++++++++++++++------------
 1 files changed, 15 insertions(+), 12 deletions(-)


hooks/post-receive
-- 
Netdot


------------------------------

_______________________________________________
Netdot-devel mailing list
[email protected]
https://osl.uoregon.edu/mailman/listinfo/netdot-devel


End of Netdot-devel Digest, Vol 69, Issue 11
********************************************

Reply via email to