Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Deploying templates now gives a list and summary of templates deployed

This fixes the issue of '6 "/story.mc"s deployed" where the message was getting the last used template name.
  • Loading branch information...
commit 6c5ed7777dee1178c6a401623345f0f8810b1074 1 parent f774051
@paulorrock paulorrock authored
Showing with 11 additions and 7 deletions.
  1. +4 −7 lib/Bric/App/Callback/Desk.pm
  2. +7 −0 lib/Bric/Changes.pod
View
11 lib/Bric/App/Callback/Desk.pm
@@ -353,7 +353,6 @@ sub deploy : Callback {
$a_ids = ref $a_ids ? $a_ids : [$a_ids];
if (my $count = @$a_ids) {
- my $disp_name;
for my $fa (Bric::Biz::Asset::Template->list({
version_id => ANY(@$a_ids)
})) {
@@ -375,13 +374,11 @@ sub deploy : Callback {
$fa->set_workflow_id(undef);
$fa->save;
log_event("template_rem_workflow", $fa);
- $disp_name ||= $fa->get_uri;
+ add_msg('Template "[_1]" deployed.', $fa->get_uri);
}
- # Let 'em know we've done it!
- if ($count == 1) {
- add_msg('Template "[_1]" deployed.', $disp_name);
- } else {
- add_msg("[quant,_1,$disp_name] deployed.", $count);
+ # Sum it up for them
+ if ($count > 1) {
+ add_msg("[quant,_1,template] deployed.", $count);
}
}
}
View
7 lib/Bric/Changes.pod
@@ -300,8 +300,15 @@ Orrock. [David]
The Bulk Edit and template code textarea fields no longer jump around as you
type in IE 6. [David]
+=item *
+
+List of templates deployed is now reported properly after a successful deploy
+[Paul Orrock]
+
=back
+
+
=head1 VERSION 1.10.1 (2006-03-20)
=head2 New Features
Please sign in to comment.
Something went wrong with that request. Please try again.