From b38c5dda858ec2692888bad561452bde36655e84 Mon Sep 17 00:00:00 2001 From: Matthew Musgrove Date: Sun, 8 May 2011 09:13:13 -0500 Subject: [PATCH] Fix: Another fix for RenameAsteroid. --- lib/Lacuna/DB/Result/Propositions/RenameAsteroid.pm | 2 +- var/www/public/changes.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Lacuna/DB/Result/Propositions/RenameAsteroid.pm b/lib/Lacuna/DB/Result/Propositions/RenameAsteroid.pm index 13a65fde..badb72ea 100644 --- a/lib/Lacuna/DB/Result/Propositions/RenameAsteroid.pm +++ b/lib/Lacuna/DB/Result/Propositions/RenameAsteroid.pm @@ -11,7 +11,7 @@ before pass => sub { my $bodies = Lacuna->db->resultset('Lacuna::DB::Result::Map::Body'); my $asteroid = $bodies->find($self->scratch->{asteroid_id}); my $name = $self->scratch->{name}; - if ($bodies->search({name=>$name, 'body_id'=>{'!='=>$asteroid->id}})->count) { + if ($bodies->search({name=>$name, id=>{'!='=>$asteroid->id}})->count) { $self->pass_extra_message('Unfortunately, by the time the proposition passed, the name *'.$name.'* had already taken, effectively nullifying the vote.'); } elsif ($asteroid->star->station_id != $station->id) { diff --git a/var/www/public/changes.txt b/var/www/public/changes.txt index 0b86d829..276280ea 100644 --- a/var/www/public/changes.txt +++ b/var/www/public/changes.txt @@ -2,6 +2,7 @@ - Fix: Member's only colonization properly checks the Alliance id. - Fix: New players will not be given a planet around a star under the member's only colonization law. - Fix: Corrected sweeper description. + - Fix: Another fix for RenameAsteroid. 3.0701 - Fix: Passed EvictMiningPlatform, FireBfg, RenameAsteroid, RenameStar and RenameUninhabited propositions will no longer fail with not in jurisdiction errors when they should not. -- 2.51.2