increment again if autonamed name already exists

Ticket

+commit
 

 

When you're about to autoname a card, check if there is already a card by that name. If so, increment and check again.

 

http://play.dwagn.org/play/new/customtype - the autoname is up to "005", but I already added a Basic card by that name. When I click "Submit" I get:

Rats. Issue with 005 card:

NAME: must be unique-- A card named '005' already exists

 


 

http://test.dwagn.org/new/hee%20hee offers to name the card "1001" even though that already exists http://test.dwagn.org/wagn/1001 which will lead to an edit collision.

 

(When you click that link the autoname will be incremented to 1002, so please set it back to 1001: http://test.dwagn.org/wagn/hee_hee+*type+*autoname )

 

autonaming has been refactored so the increment only happens after commiting to a save (not upon loading a new form)


impressed that you caught this. should be an easy fix when I can get to it.

  --Ethan McCutchen.....Sat Dec 24 14:53:24 -0800 2011


got to it :)

  --Ethan McCutchen.....Tue Dec 27 15:57:57 -0800 2011