]> ruin.nu Git - ndwebbie.git/commitdiff
Bugfix, use the planet id instead of incoming id
authorMichael Andreen <harv@ruin.nu>
Sun, 20 Jul 2008 11:08:14 +0000 (13:08 +0200)
committerMichael Andreen <harv@ruin.nu>
Sun, 20 Jul 2008 11:08:14 +0000 (13:08 +0200)
lib/NDWeb/Controller/Calls.pm
root/src/calls/edit.tt2

index eca27be3fcc9f6431e06c966fe328aa776313fbb..a41553f9169ff26d60b019dba57c4d61fc7dda96 100644 (file)
@@ -196,7 +196,6 @@ sub edit : Local {
                        }
                        push @missions,$mission;
                }
-               delete $attacker->{planet};
                $attacker->{missions} = \@missions;
                push @attackers,$attacker;
        }
index c410d741e5aa1764648a307cbeedf32c73cb1d05..e456ee7868b35133553a529b695697a16981b162 100644 (file)
@@ -48,7 +48,7 @@
 [% FOR a IN attackers %]
        <tr class="[% loop.count % 2 == 0 ? 'even' : 'odd' %]">
                <td><input type="button" onclick="$('#attacker[% a.id %]').toggle()" value="&dArr;" title="Show fleets"></td>
-               <td><a href="[% c.uri_for('/stats/planet',a.id) %]">[% a.coords %]</a></td>
+               <td><a href="[% c.uri_for('/stats/planet',a.planet) %]">[% a.coords %]</a></td>
                <td class="[% a.planet_status %]">[% a.planet_status %]</td>
                <td class="[% a.relationship %]">[% a.alliance %] ([% a.relationship %])</td>
                <td>[% a.race %]</td>