Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Bricolage: commits

[8515] Fixed bug in auto_complete to check the site_id

 

 

Bricolage commits RSS feed   Index | Next | Previous | View Threaded


paulo at bricolage

Mar 20, 2009, 8:56 AM

Post #1 of 1 (552 views)
Permalink
[8515] Fixed bug in auto_complete to check the site_id

Revision: 8515
Author: paulo
Date: 2009-03-20 08:56:20 -0700 (Fri, 20 Mar 2009)
ViewCVS: http://viewsvn.bricolage.cc/?rev=8515&view=rev

Log Message:
-----------
Fixed bug in auto_complete to check the site_id

Modified Paths:
--------------
bricolage/trunk/comp/widgets/story_prof/autocomplete_categories.html
bricolage/trunk/lib/Bric/Changes.pod

Modified: bricolage/trunk/comp/widgets/story_prof/autocomplete_categories.html
===================================================================
--- bricolage/trunk/comp/widgets/story_prof/autocomplete_categories.html 2009-03-20 05:22:52 UTC (rev 8514)
+++ bricolage/trunk/comp/widgets/story_prof/autocomplete_categories.html 2009-03-20 15:56:20 UTC (rev 8515)
@@ -20,7 +20,10 @@
site_id => $site_id || $story->get_site_id,
});
} else {
- my $parent_cat = Bric::Biz::Category->lookup({ uri => $parent_cat_uri });
+ ( my $parent_cat ) = Bric::Biz::Category->list({
+ uri => $parent_cat_uri });
+ site_id => $site_id || $story->get_site_id,
+ });
@categories = Bric::Biz::Category->list({
uri => $new_category_autocomplete . "%",
site_id => $site_id || $story->get_site_id,

Modified: bricolage/trunk/lib/Bric/Changes.pod
===================================================================
--- bricolage/trunk/lib/Bric/Changes.pod 2009-03-20 05:22:52 UTC (rev 8514)
+++ bricolage/trunk/lib/Bric/Changes.pod 2009-03-20 15:56:20 UTC (rev 8515)
@@ -375,6 +375,11 @@
Fixed C<< Bric::Biz::Element::Field->get_max_length >> to correctly return the
max_length. [Adrian Yee]

+=item *
+
+Fixed bug in L<auto_complete.html> so that lookups of parent categories now
+correctly use the site id [Rolf Schaufelberger, Paul Orrock]
+
=back

=head1 VERSION 1.11.1 (2008-10-03)

Bricolage commits RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.