Skip to content

Commit

Permalink
Backported element deletion fix from trunk. It must've been there for…
Browse files Browse the repository at this point in the history
…ever.
  • Loading branch information
theory committed Oct 21, 2005
1 parent 59ede08 commit 826eacc
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions lib/Bric/App/Callback/ContainerProf.pm
Original file line number Diff line number Diff line change
Expand Up @@ -599,13 +599,18 @@ sub _update_parts {

# Save data to tiles and put them in a usable order
foreach my $t ($tile->get_tiles) {
my $id = $t->get_id();
my $id = $t->get_id;
my $is_cont = $t->is_container;

# Grab the tile we're looking for
local $^W = undef;
$locate_tile = $t if $id == $locate_id and $t->is_container;
if ($do_delete && ($param->{$widget . "|delete_cont$id"} ||
$param->{$widget . "|delete_data$id"})) {
{
local $^W = undef;
$locate_tile = $t if $id == $locate_id and $is_cont;
}
if ($do_delete
&& (($is_cont && $param->{$widget . "|delete_cont$id"})
|| (!$is_cont && $param->{$widget . "|delete_data$id"}))
) {
add_msg('Element "[_1]" deleted.', $t->get_name);
push @delete, $t;
next;
Expand Down

0 comments on commit 826eacc

Please sign in to comment.