make '-copy' order names a little smarter
|Assignee:||Battaglia Marc||% Done:|
avoid very long names in order, increase readability
When we copy an order, the name has a 'copy' appended , but a copy of a copy gives '-copy-copy' and so on...
We could detect this case and make a little smarter : 'copy-1', 'copy-2', etc.
#3 Updated by Blatti Yves almost 4 years ago
- Status changed from Affected to Resolved
- % Done changed from 0 to 100
For info: the new name is calculated from the order that is copied, we don't do a String based SQL query (heavy for little benefits, and order names do not need to be unique).
Original name to copy name :
|MyOrderName||MyOrderName - copy|
|MyOrderName - copy||MyOrderName - copy 2|
|MyOrderName - copy 2||MyOrderName - copy 3|
|MyOrderName - copy 99||MyOrderName - copy 100|
|and so on||...|