Defect #16379

Undefined method `each' for nil:NilClass on search for watchers to add

Added by Ricardo S over 3 years ago. Updated over 3 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Issues
Target version:-
Resolution:Duplicate Affected version:

Description

Not selecting an user, when 'Searching for users to add' on a New Issue, and clicking on Add instead of Cancel results on the following error on the logs:

undefined method `each' for nil:NilClass
app/views/watchers/append.js.erb:1:in `_app_views_watchers_append_js_erb__830604308_107476400'

Looking and the WatchersController.append action one can see that the @users attribute fails to be initialized when no user is selected.
That seems to be cause.


Related issues

Duplicates Redmine - Defect #14298: Error generated on 'search for watchers to add' after cli... Closed

History

#1 Updated by Michael Esemplare over 3 years ago

Duplicates #14298

#2 Updated by Jean-Philippe Lang over 3 years ago

  • Status changed from New to Closed
  • Resolution set to Duplicate

Indeed, fixed in r12985.

#3 Updated by Jean-Philippe Lang over 3 years ago

  • Duplicates Defect #14298: Error generated on 'search for watchers to add' after clicking add without selected users added

Also available in: Atom PDF