Closed natebenson closed 9 years ago
I'm not sure how he was able to do this. If you try adding a non-multiple section and it already exists, it should proceed by editing the existing section. Do you have any ideas on how to reproduce this issue @UnspeakableHorror @tarex?
No idea, I tried and it's not possible, might have been fixed in another PR?
I tried at www.vyllage.com and local.
Perhaps having two windows open?
Probably not the way he did it, but seems possible.
@tylerbenson nice. Yeah, that's possible.
Interesting, two windows open allow you to duplicate it, I never though of that. Now how to solve this...
Perhaps do some sort of merge of sections on the back end?
I was thinking of denying it at the controller but since the first section is already saved then yes that could work too.
Of course that will only work for sections that have simple string fields, if we ever have others that are complex with dates, pictures, etc that won't work. Always speaking about sections that admit one per type.
Maybe adding a validation to check on single-only sections on the back-end? A quick fix would be to hide that extra section from the front-end.
Yes, for those that are complex we can only reject them. Now, the problem is that the data is already there and there's no easy fix with a script, hmm.
Single sections are Objective, Skills and Career Interests. No dates or pictures from their content if you plan to go the merging route.
Ok!
Related to #1064.
another user