OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
[46827] Custom project attribute triggers error when selected during project creation (#13095)
Behrokh Satarnejaddee3d811d542
diff --git a/frontend/src/app/core/current-user/current-user.service.ts b/frontend/src/app/core/current-user/current-user.service.tsindex d495ad2680e..cb8cc927246 100644--- a/frontend/src/app/core/current-user/current-user.service.ts+++ b/frontend/src/app/core/current-user/current-user.service.ts@@ -83,7 +83,7 @@ export class CurrentUserService {const filters:ApiV3ListFilter[] = [userFilter];if (projectContext) {- filters.push(['context', '=', [projectContext === 'global' ? 'g' : `p${projectContext}`]]);+ filters.push(['context', '=', [projectContext === 'global' || projectContext === 'projects' ? 'g' : `p${projectContext}`]]);}if (actions.length > 0) {diff --git a/spec/features/projects/projects_custom_fields_spec.rb b/spec/features/projects/projects_custom_fields_spec.rbindex e33db0bb3ee..af9d0f0941b 100644--- a/spec/features/projects/projects_custom_fields_spec.rb+++ b/spec/features/projects/projects_custom_fields_spec.rb@@ -275,5 +275,17 @@ describe 'Projects custom fields', js: true docv = project.custom_values.find_by(custom_field_id: custom_field.id).typed_valueexpect(cv).to eq invisible_userend++ it 'does not show invite user button when there is no project selected' do+ visit new_project_path++ name_field.set_value 'My project name'++ find('.op-fieldset--toggle', text: 'ADVANCED SETTINGS').click++ cf_field.expect_visible+ cf_field.expect_no_option invisible_user+ expect(page).not_to have_selector('.ng-dropdown-footer button', text: 'Invite')+ endendend