taigaio / taiga-front

GNU Affero General Public License v3.0
265 stars 114 forks source link

[BUG] On new account, create project from "duplicate project" option hits a bug #181

Open Pablohn26 opened 1 year ago

Pablohn26 commented 1 year ago

Describe the bug

When creating your account, you can create a project using "duplicate project" option. If you fill the information (except the project you want to duplicate from, that you cannot select it because you have just created your account), you get an error (referenceProject is undefined) when trying to create.

Error: this.referenceProject is undefined
e.prototype.submit@https://tree.taiga.io/v-1681797602842/js/app.js:1:693653
fn@https://tree.taiga.io/v-1681797602842/js/libs.js line 1 > Function:4:256
n@https://tree.taiga.io/v-1681797602842/js/libs.js:1:310743
e@https://tree.taiga.io/v-1681797602842/js/libs.js:1:351258
$eval@https://tree.taiga.io/v-1681797602842/js/libs.js:1:319935
$apply@https://tree.taiga.io/v-1681797602842/js/libs.js:1:320168
No[a]</compile/</<@https://tree.taiga.io/v-1681797602842/js/libs.js:1:351308
dispatch@https://tree.taiga.io/v-1681797602842/js/libs.js:1:39143
add/p.handle@https://tree.taiga.io/v-1681797602842/js/libs.js:1:37234
e@https://tree.taiga.io/v-1681797602842/js/libs.js:1:595278
value@https://tree.taiga.io/v-1681797602842/js/elements.js:1:96118
value@https://tree.taiga.io/v-1681797602842/js/elements.js:1:92079
value@https://tree.taiga.io/v-1681797602842/js/elements.js:1:97682
o@https://tree.taiga.io/v-1681797602842/js/elements.js:1:111942
v@https://tree.taiga.io/v-1681797602842/js/elements.js:1:112383
[angular.js:14195](https://tree.taiga.io/v-1681797602842/js/maps/angular.js)
    e Angular
    t app.js:10615
    Angular 2
        $apply
        compile
    jQuery 2
        dispatch
        handle
    e raven.js:444
    value elements.js:1
    value elements.js:1
    value elements.js:1
    o elements.js:1
    v elements.js:1

How can we reproduce the behavior

Create a new account and try to create a new project from duplicate project option.

Workarounds

Avoid that option (makes no sense to use it)

Screenshots

How to reproduce

Taiga environment

Taiga.io

Desktop (please complete the following information):

Additional context

Makes no sense to select that option, but it is displayed so could be used and thus hitting the bug