coopcycle-web
coopcycle-web copied to clipboard
Repurposing old restaurants creates naming error
Describe the bug When taking an unused restaurant profile and using it for a new restaurant (changing all the information in the profile including its name), on the admin Dashboard the order shows up with the original restaurant name along with the new one. The old incorrect name is in bold, and the new correct one in normal text
To Reproduce Steps to reproduce the behavior:
- create restaurant with its own info
- wait an unknown amount of time
- replace name with new name
- make order
- see error on admin dashboard panel
Expected behavior The correct name shows up
Screenshots
Desktop (please complete the following information):
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
Smartphone (please complete the following information):
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
Additional context Add any other context about the problem here.
Same thing happens with stores?
It's because what's in bold in the "organization name" (which is attached to the task), and what's in normal text is the "address name" (an alias for the address).
When a restaurant is updated, the address name is updated, but the organization name is not. The problem I see, if we update the organization name, is that all previous tasks will be updated.
How about adding the possibility to Clone/Duplicate a restaurant? With this action you can reuse all the information of an existing restaurant and assign to the new one new properties such as: name, logo, address, etc. And you can keep the old restaurant (and the previous tasks will still refer to it) or you can delete it if it's no longer needed.
So that was a separate issue request I was going to make whenever I got around to it. Multiple times it would have been very useful to be able to
- copy and paste a restaurant to avoid redoing all the configurations (effectively could have a "template" unconnected restaurant)
- Export menu products, options, etc. Recently would have saved a considerable amount of work for a coop that is opening with a restaurant that we are with, and it was also going to be helpful at some other point but I forget when it was...sorry 3