Error script when adding a page to multi Translation project

Found in

EPiServer.Labs.LanguageManager 3.1.0

Fixed in

EPiServer.Labs.LanguageManager 3.1.0

Created

Nov 09, 2017

Updated

Dec 01, 2017

State

Closed, Fixed


Description

1. Create >= 3 projects
2. Create a page > add to Project 1
3. Select the page
4. Add it to Project 2 by Add to Translation Project on LM gadget : ok
5. Add it to Project 3 by Add to Translation Project on LM gadget
Expected: Add successfully
Actual : Error script:

widgets.js:2 Uncaught Error: Object already exists
    at Object.put (http://thuymvc11x.qarocks.se/EPiServer/Shell/11.1.0.0/ClientResources/epi/shell/widgets.js:2:343613)
    at Object.add (http://thuymvc11x.qarocks.se/EPiServer/Shell/11.1.0.0/ClientResources/epi/shell/widgets.js:2:343783)
    at http://thuymvc11x.qarocks.se/EPiServer/Shell/11.1.0.0/ClientResources/epi/shell/widgets.js:2:492959
    at when (http://thuymvc11x.qarocks.se/EPiServer/Shell/11.1.0.0/ClientResources/dojo/dojo.js:15:81864)
    at TMP._e1c.add (http://thuymvc11x.qarocks.se/EPiServer/Shell/11.1.0.0/ClientResources/epi/shell/widgets.js:2:492898)
    at TMP._dcc.(anonymous function) [as add] (http://thuymvc11x.qarocks.se/EPiServer/Shell/11.1.0.0/ClientResources/epi/shell/widgets.js:2:488734)
    at TMP._e06.(anonymous function) [as add] (http://thuymvc11x.qarocks.se/EPiServer/Shell/11.1.0.0/ClientResources/epi/shell/widgets.js:2:490942)
    at http://thuymvc11x.qarocks.se/EPiServer/EPiServer.Labs.LanguageManager/3.1.0-pre-000025/ClientResources/LanguageManager/packaged.js:2:26678
    at Array.map (<anonymous>)
    at Object.addProjectItems (http://thuymvc11x.qarocks.se/EPiServer/EPiServer.Labs.LanguageManager/3.1.0-pre-000025/ClientResources/LanguageManager/packaged.js:2:26647)
put @ widgets.js:2
add @ widgets.js:2
(anonymous) @ widgets.js:2
when @ dojo.js:15
_e1c.add @ widgets.js:2
_dcc.(anonymous function) @ widgets.js:2
_e06.(anonymous function) @ widgets.js:2
(anonymous) @ packaged.js:2
addProjectItems @ packaged.js:2
onAction @ packaged.js:2
_onConfirm @ widgets.js:2
(anonymous) @ dojo.js:15
(anonymous) @ dojo.js:15
_264 @ dojo.js:15
_onClick @ widgets.js:2
_19e @ dojo.js:15
_onClick @ widgets.js:2
(anonymous) @ dojo.js:15
(anonymous) @ widgets.js:2