berti92 / mega_calendar

Plugin for redmine: Brings a better calendar and more opportunities to display issues and holidays
http://www.devbert.de/index.php/en/project/megacalendar/
MIT License
70 stars 52 forks source link

Make start and end times as issue's custom fields #103

Closed acosonic closed 6 months ago

acosonic commented 2 years ago

Because if they are visible custom fields, they will be added in email via

issue.visible_custom_field_values(user).each do |value|
      cf_value = show_value(value, false)
      next if cf_value.blank?

      if html
        items << content_tag('strong', "#{value.custom_field.name}: ") + cf_value
      else
        items << "#{value.custom_field.name}: #{cf_value}"
      end

from method email_issue_attributes in issues_helper.rb ....

acosonic commented 2 years ago

currently they are not issue attributes, bur rather ticket_time.time_begin and ticket_time.time_end and cannot be added to email like other issue attributes or custom fields...

berti92 commented 2 years ago

I agree with you. I highly welcome a PR :)

berti92 commented 6 months ago

Closed, because no time to enhance this plug any further. PR is welcome, though