[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bricolage-commits
Subject:    [Bricolage-Commits] Server error fix.
From:       David Wheeler <wheeler () users ! sourceforge ! net>
Date:       2003-07-27 15:06:22
[Download RAW message or body]

Log Message:
-----------
Server error fix. Adding a server to a new destination before saving the
destination or adding an action no longer causes an SQL error.

Modified Files:
--------------
    /cvsroot/bricolage/bricolage/comp/admin/profile/server:
        Tag:
        rev_1_6
        dhandler
    /cvsroot/bricolage/bricolage/lib/Bric:
        Tag:
        rev_1_6
        Changes.pod
["wheeler-200372715622-diff.txt" (wheeler-200372715622-diff.txt)]

Index: dhandler
===================================================================
RCS file: /cvsroot/bricolage/bricolage/comp/admin/profile/server/dhandler,v
retrieving revision 1.7
retrieving revision 1.7.4.1
diff -u -w -d -r1.7 -r1.7.4.1
--- dhandler	23 Oct 2002 01:19:12 -0000	1.7
+++ dhandler	27 Jul 2003 15:06:19 -0000	1.7.4.1
@@ -40,6 +40,7 @@
 %#-- Args Section --#
 <%args>
 $id => undef
+$dest_id => undef
 </%args>
 
 %#-- Init Section --#
@@ -56,7 +57,7 @@
 
 # Get the server type (destination profile) ID and instantiate the destination
 # object.
-my $dest_id = get_state_data($widget, $dest_key) || $s->get_server_type_id;
+$dest_id ||= get_state_data($widget, $dest_key) || $s->get_server_type_id;
 my $dest = $dest_class->lookup({ id => $dest_id });
 
 # Check authorization.
Index: Changes.pod
===================================================================
RCS file: /cvsroot/bricolage/bricolage/lib/Bric/Changes.pod,v
retrieving revision 1.256.2.118
retrieving revision 1.256.2.119
diff -u -w -d -r1.256.2.118 -r1.256.2.119
--- Changes.pod	27 Jul 2003 03:40:37 -0000	1.256.2.118
+++ Changes.pod	27 Jul 2003 15:06:20 -0000	1.256.2.119
@@ -271,6 +271,11 @@
 that output channel from another document type element. Thanks to Clive Jones
 for the spot! [David]
 
+=item *
+
+Adding a server to a new destination before saving the destination or adding
+an action no longer causes an SQL error. [David]
+
 =back
 
 =head1 VERSION 1.6.1
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
Bricolage-Commits mailing list
Bricolage-Commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bricolage-commits

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic