agileware-jp / redmine_work_days Goto Github PK
View Code? Open in Web Editor NEWRedmine Work Days Plugin
Redmine Work Days Plugin
can u upgrade it??
redmine2.3系でガントチャートタブを表示しようとするとエラーになる。
Completed 500 Internal Server Error in 19ms
ActionView::Template::Error (undefined method draw_relations' for #<IssueQuery:0x007fc4e1f4f5a8>): 29: <fieldset> 30: <legend><%= l(:label_related_issues) %></legend> 31: <label for="draw_relations"> 32: <%= check_box 'query', 'draw_relations', :id => 'draw_relations' %> 33: <% rels = [IssueRelation::TYPE_BLOCKS, IssueRelation::TYPE_PRECEDES] %> 34: <% rels.each do |rel| %> 35: <% color = Redmine::Helpers::Gantt::DRAW_TYPES[rel][:color] %> app/controllers/gantts_controller.rb:43:in
block (2 levels) in show'
app/controllers/gantts_controller.rb:42:in `show'
migrationを実行しようとしたところ以下のエラーが発生しました。
$ bundle exec rake redmine:plugins:migrate NAME=redmine_work_days
rake aborted!
NoMethodError: undefined method `to_prepare' for ActionDispatch::Callbacks:Class
Did you mean? to_param
/Users/maeda/redmines/redmine-trunk/plugins/redmine_work_days/init.rb:6:in `<top (required)>'
/Users/maeda/redmines/gems/ruby/2.4.0/gems/activesupport-5.1.2/lib/active_support/dependencies.rb:292:in `require'
.
.
.
Googleカレンダーの内容を休業日としてインポートできる機能が欲しい
Hi,
This seems the only plugin working with public holidays. I recently upgraded this plugin to 5.1.
I wonder whether this repo is still maintained by somebody. Do you prefer to merge my modification back to the main branch? or just a new fork?
Thanks,
David
会社休日を追加、削除等のボタンがie8,9では反応しませんでした。
When I upgraded my Redmine to the latest 3.4 with redmine_work_days
plugin, the gantt page cannot be displayed since an Internal Server Error occurred. Production log says as follows:
Rendered plugins/redmine_work_days/app/views/gantts/3.x/show.html.erb (268.3ms)
Rendered plugins/redmine_work_days/app/views/gantts/show.html.erb within layouts/base (268.7ms)
Completed 500 Internal Server Error in 290ms (ActiveRecord: 12.8ms)
ActionView::Template::Error (undefined method `link_to_content_update' for #<#<Class:0x007f981f5f99c0>:0x000000050fe6c8>):
333: <table style="width:100%">
334: <tr>
335: <td style="text-align:left;">
336: <%= link_to_content_update("\xc2\xab " + l(:label_previous),
337: params.merge(@gantt.params_previous),
338: :accesskey => accesskey(:previous)) %>
339: </td>
plugins/redmine_work_days/app/views/gantts/3.x/show.html.erb:336:in `_plugins_redmine_work_days_app_views_gantts___x_show_html_erb___786734221022208622_70145669133820'
Then, I changed plugins/redmine_work_days/app/views/gantts/3.x/show.html.erb
as shown below.
<table style="width:100%">
<tr>
<td style="text-align:left;">
<%= link_to("\xc2\xab " + l(:label_previous),
{:params => params.merge(@gantt.params_previous)},
:accesskey => accesskey(:previous)) %>
</td>
<td style="text-align:right;">
<%= link_to(l(:label_next) + " \xc2\xbb",
{:params => params.merge(@gantt.params_next)},
:accesskey => accesskey(:next)) %>
</td>
</tr>
</table>
It seems to work well at least in my environment but I'm not a ruby coder and also Redmine specialist so please check the codes and update them appropriately.
Best regards,
Takaaki
CSVインポートを実行すると以下のエラーが発生するようです。
ActionView::Template::Error (First argument in form cannot contain nil or be empty):
23:
24: <h3><%=l(:label_create_rest_day)%></h3>
25: <div class="box tabular">
26: <%= form_for @rest_day, url: rest_days_path do |f| %>
27: <div style="margin-bottom: 10px;">
28: <%= l(:label_create_rest_day_day) %>
29: <%= f.text_field :day, :size => 10, :required => true %><%= calendar_for('rest_day_day') %>
plugins/redmine_work_days/app/views/rest_days/index.html.erb:26:in `_plugins_redmine_work_days_app_views_rest_days_index_html_erb___265317613_83757180'
plugins/redmine_work_days/app/controllers/rest_days_controller.rb:41:in `import'
lib/redmine/sudo_mode.rb:63:in `sudo_mode'
個別登録と削除は正常に動作しました。
環境は Redmine 3.4.2 です。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.