fixing a small bug where text id's arent compared right
This commit is contained in:
parent
79af251128
commit
2a9e840ffa
1 changed files with 1 additions and 1 deletions
|
|
@ -619,7 +619,7 @@ sub swap_nodes{
|
||||||
my $first_id=$params{first_id};
|
my $first_id=$params{first_id};
|
||||||
my $second_id=$params{second_id};
|
my $second_id=$params{second_id};
|
||||||
croak("You didn't give me valid IDs to swap!\n") if(! $first_id || ! $second_id);
|
croak("You didn't give me valid IDs to swap!\n") if(! $first_id || ! $second_id);
|
||||||
croak("You can't switch a node with itself!\n") if($first_id == $second_id);
|
croak("You can't switch a node with itself!\n") if($first_id eq $second_id);
|
||||||
|
|
||||||
$self->_lock_tables();
|
$self->_lock_tables();
|
||||||
my $first_id_info=$self->get_hashref_of_info_by_id($first_id);
|
my $first_id_info=$self->get_hashref_of_info_by_id($first_id);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue