Comments (3)
Error is caused by this line: https://github.com/rgtk/redmine_editauthor/blob/9ac40cee9c0e6c293a8401b9b71dd70c3475e990/lib/redmine_editauthor/hook.rb#L22
It happens because possible_authors
returns User::ActiveRecord_Relation
and I am calling unshift
method commonly found in Array
which Relation is clearly not.
Silly me. Why would I write a code that doesn't work?
It works, but for older version of Rails (framework Redmine use). It seems you use Rails 5.x. I have tested and used this plugin for 3-4.x.
The way to fix it is to convert Relation to an Array which you can do by calling to_a
on it:
authors = possible_authors(issue.project).to_a
I have not tested it but it should work. Try it! And maybe create pull request? 😉
from redmine_editauthor.
Done 😁 thanks for the feedback and quick response!
Your proposed fix seems to solve the issue for me.
from redmine_editauthor.
Thanks.
from redmine_editauthor.
Related Issues (20)
- Incorrect use assignable_users HOT 2
- Slow loading time HOT 3
- Author not in group HOT 1
- Option to choose only between explicit active project members HOT 3
- have internal error HOT 1
- Author not editable when creating Ticket HOT 3
- Error 500 opening issue page (redmine 2.3.4.stable on Windows) HOT 1
- Redmine 4.0 HOT 3
- please delete
- please delete
- please delete
- Not compatible with plugin additionals HOT 2
- Compatible with Redmine 4.1 HOT 7
- Add ability to change issue owner with bulk edit (right-button - Edit in the Issue list) HOT 1
- Actual issue author is hidden HOT 3
- List of users HOT 1
- Compatibility with Redmine 5 HOT 5
- Empty combo HOT 5
- Choose Author on new Issue creation HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redmine_editauthor.