AfricasVoices / coda

Intelligently supporting plural message coding
MIT License
1 stars 0 forks source link

Code Ids not guaranteed to be unique #126

Closed as2388 closed 6 years ago

as2388 commented 6 years ago

When adding a code in the editor, the new code's id is generated at random. No check that this code does not already exist is performed.

Problem line is newId = tempScheme["id"] + "-" + UIUtils.randomId(); in editorUI.js:addCodeInputRow