small copy context menu bugfix

This commit is contained in:
James Tolley 2007-07-11 17:30:43 +00:00
parent 47854cb599
commit c461811f25

View file

@ -231,8 +231,6 @@ sub prepareView {
#-------------------------------------------------------------------
sub view {
my $self = shift;
$self->session->errorHandler->warn('count: '. @{ $self->{_viewVars}{position1_loop} });
$self->session->errorHandler->warn('first: '. Dumper($self->{_viewVars}{position1_loop}->[0]) );
if ($self->{_viewVars}{showAdmin} && $self->canEditIfLocked) {
# under normal circumstances we don't put HTML stuff in our code, but this will make it much easier
# for end users to work with our templates
@ -247,8 +245,6 @@ sub view {
my $showPerformance = $self->session->errorHandler->canShowPerformanceIndicators();
my $out = $self->processTemplate($self->{_viewVars},undef,$self->{_viewTemplate});
my @parts = split("~~~~~",$self->processTemplate($self->{_viewVars},undef,$self->{_viewTemplate}));
use Data::Dumper;
# $self->session->errorHandler->warn('parts: '.Dumper(\@parts));
my $output = "";
foreach my $part (@parts) {
my ($outputPart, $assetId) = split("~~~",$part,2);