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
Fix user limit error for unlimited token, Fix error when deleting a pasted token
Inga Mai6fbee8640c31
diff --git a/app/controllers/enterprises_controller.rb b/app/controllers/enterprises_controller.rbindex 7537d79fd14..ea1d79fe0f8 100644--- a/app/controllers/enterprises_controller.rb+++ b/app/controllers/enterprises_controller.rb@@ -71,7 +71,7 @@ class EnterprisesController < ApplicationControllerflash[:notice] = t(:notice_successful_delete)trial_key = Token::EnterpriseTrialKey.find_by(user_id: User.system.id)- trial_key.destroy+ trial_key&.destroyredirect_to action: :showelsediff --git a/app/views/enterprises/_current.html.erb b/app/views/enterprises/_current.html.erbindex 6438288896c..53224492a4f 100644--- a/app/views/enterprises/_current.html.erb+++ b/app/views/enterprises/_current.html.erb@@ -1,8 +1,8 @@<enterprise-active-trial data-subscriber="<%= @current_token.subscriber %>"data-email="<%= @current_token.mail %>"- data-user-count="<%= @current_token.restrictions[:active_user_count] %>"+ data-user-count="<%= @current_token.restrictions.nil? ? t('js.admin.enterprise.upsale.unlimited') : @current_token.restrictions[:active_user_count] %>"data-starts-at="<%= format_date @current_token.starts_at %>"- data-expires-at="<%= format_date @current_token.expires_at %>">+ data-expires-at="<%= (!@current_token.will_expire?) ? t('js.admin.enterprise.upsale.unlimited') : (format_date @current_token.expires_at) %>"></enterprise-active-trial><%= form_tag({ action: :destroy },diff --git a/config/locales/js-en.yml b/config/locales/js-en.ymlindex 6bd63abb251..e23ab7ebc20 100644--- a/config/locales/js-en.yml+++ b/config/locales/js-en.yml@@ -231,6 +231,7 @@ en:button_start_trial: "Start free trial"button_book_now: "Book now"link_quote: "Get a quote"+ unlimited: "Unlimited"you_contribute: "Developers need to pay their bills, too. With Enterprise Edition you substantially contribute to this Open-Source community effort."custom_actions: