Skip to content

Commit

Permalink
Avoid expired aliases in best_uri()
Browse files Browse the repository at this point in the history
[#144 state:resolved]
  • Loading branch information
theory committed Mar 10, 2010
1 parent e8f5253 commit 2ea3cfa
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions comp/widgets/help/debuggers.html
Expand Up @@ -90,4 +90,5 @@
<li>Krzysztof Rudnik</li>
<li>Adam Wilson</li>
<li>Iván Chavero</li>
<li>Zdravko Balorda</li>
</ul>
6 changes: 6 additions & 0 deletions lib/Bric/Changes.pod
Expand Up @@ -157,6 +157,12 @@ The simple search in workflows no longer disables navigation links on the same
horizontal line as the "Search" button. Thanks to Matt Rolf for the report
(Bug # 141) and to Marshall for the CSS jujitsu. [David]

=item *

The C<best_uri()> method of L<Bric::Util::Burner> now avoids expired stories
when searching for aliased stories. Thanks to Zdravko Balorda for the catch
(Bug #144). [David]

=back

=head1 Version 1.11.3 (2010-01-28)
Expand Down
2 changes: 2 additions & 0 deletions lib/Bric/License.pod
Expand Up @@ -486,6 +486,8 @@ Friends who have spotted bugs include:

=item * Iván Chavero

=item * Zdravko Balorda

=back

Bricolage's translation team:
Expand Down
1 change: 1 addition & 0 deletions lib/Bric/Util/Burner.pm
Expand Up @@ -1941,6 +1941,7 @@ sub best_uri {
} else {
# The asset's not in this site. Try to lookup an alias in this site.
if (my $rel = $ba->lookup({ alias_id => $ba->get_id,
unexpired => 1,
site_id => $site_id })) {
# Use the alias, instead.
$ba = $rel;
Expand Down

0 comments on commit 2ea3cfa

Please sign in to comment.