forum.webdiplomacy.net

webDip dev coordination forum / public access todo list
It is currently Wed Oct 18, 2017 10:10 pm

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Mon Aug 06, 2012 5:28 pm 
Offline

Joined: Thu Dec 18, 2008 12:24 pm
Posts: 55
I'm sure this issue has been seen before; but i haven't seen it recently and don't know if i can replicate it.

On this game: http://webdiplomacy.net/board.php?gameID=84566

last season i had the option for fleet Spain (south coast) to support move to Mid atlantic, from Spain.

I would have assumed that if this was common it would be seen and reported. So it may be browser dependant unfortunately i didn't get a chance to pause and try on other browsers. I have ONLY seen this on safari on a (old-ish) iphone.

I should be able to reproduce it again after retreats/builds. (i got the nice single ! error to say my orders were wrong, and server side correctly resolved the order - converting it into a hold - though i would prefer if it listed the incorrect order in the order archive but I don't think it allows saving of this order- so it appears to be problem exclusively limited to the java-script)


Top
 Profile  
 
PostPosted: Tue Aug 07, 2012 8:58 pm 
Offline

Joined: Thu Dec 18, 2008 12:24 pm
Posts: 55
screenshot!

Reproducing, let me see where else i can find it.

ok, this is found on firefox, chrome, and mirodi (on ubuntu)

and Safari and opera (on iphone)

All most up-to-date versions available.

If someone can test internet explorer i'll be happy to call this a bug.


Attachments:
photo.PNG
photo.PNG [ 52.18 KiB | Viewed 2388 times ]
bug1.png
bug1.png [ 86.08 KiB | Viewed 2389 times ]
Top
 Profile  
 
PostPosted: Tue Aug 07, 2012 9:39 pm 
Offline

Joined: Wed Jul 29, 2009 10:22 am
Posts: 841
In model.js it just deletes the ID of the unit, not the possible parent-coast.
change:
Code:
            return PossibleUnits.pluck('Territory').pluck('coastParent').pluck('id').uniq().reject(
                  function(n){return (n==this.Territory.id||n==AgainstTerritory.id);
               },this);

with
Code:
            return PossibleUnits.pluck('Territory').pluck('coastParent').pluck('id').uniq().reject(
                  function(n){return (n==this.Territory.coastParent.id||n==AgainstTerritory.id);
               },this);

Oliver


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group