Project

General

Profile

Actions

Defect #4530

closed

Can't delete ldap when users count is zero in 0.9-stable

Added by Sheng Wang almost 15 years ago. Updated almost 15 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
LDAP
Target version:
Start date:
2010-01-07
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

Specific URL:

http://foo.bar/auth_sources/list

Related Code(app/views/auth_sources/list.rhtml):
<%= link_to l(:button_delete), { :action => 'destroy', :id => source },
                                                        :confirm => l(:text_are_you_sure),
                                                        :class => 'icon icon-del',
                                                        :disabled => source.users.any? %>

The link_to method does not contain :disabled options.
I think this problem is caused by code change(button_to have been replaced by link_to).

Actions

Also available in: Atom PDF