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
Use UserAutocompleter and allow adding new Objects in the ShareWP modal
Henriette Darge55f76b56e85d
diff --git a/app/forms/work_packages/share/invitee.rb b/app/forms/work_packages/share/invitee.rbindex 736fe88d568..50f9a9eb627 100644--- a/app/forms/work_packages/share/invitee.rb+++ b/app/forms/work_packages/share/invitee.rb@@ -28,7 +28,7 @@module WorkPackages::Shareclass Invitee < ApplicationFormform do |user_invite_form|- user_invite_form.autocompleter(+ user_invite_form.user_autocompleter(name: :user_id,label: I18n.t('work_package.sharing.label_search'),visually_hide_label: true,@@ -38,13 +38,12 @@ module WorkPackages::Sharedata: {'test-selector': 'op-share-wp-invite-autocomplete'},- # Use the principal API as that requires less permissions than the user API- # but restrict the type of the principal to users only. Subject to change- # as we want to support groups soon.- resource: 'principals',+ url: ::API::V3::Utilities::PathHelper::ApiV3Path.principals,filters: [{ name: 'type', operator: '=', values: %w[User Group] },{ name: 'id', operator: '!', values: [::Queries::Filters::MeValue::KEY] }],searchKey: 'any_name_attribute',+ addTag: true,+ addTagText: I18n.t('members.send_invite_to'),focusDirectly: true,appendTo: 'body',disabled: @disabled