I have 3 linkit profiles. Two for editor and one for fields. I have disabled one of my editor profiles, however - it still shows up as a profile that users can switch to. What's worse, is that the disabled profile is always the default!

My workaround was to ensure the settings for both editor profiles were the same, so that my editors wouldn't even know about the other profile. Unless I'm missing a setting somewhere, this feels like a bug.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jdearie created an issue. See original summary.

cboyden’s picture

I can verify this bug. When you disable a Linkit profile for an editor, it still shows up in the Change Profile options.

Also, the settings make it look like you can enable an editor profile for certain text formats and not others. But this doesn't seem to have any effect. All editor profiles are available in the Change Profile options regardless of whether the box is checked for the text format that's in use.

@jdearie until this is fixed you might want to look at the patch in #2311957: Add weights to linkit profiles - it allows setting weights for profiles, so you can control which profile is the default.

dsnopek’s picture

Status: Active » Needs review
FileSize
4.32 KB

Here's a patch that does two things:

  • It changes the JS settings to include not just the default profile for a text format, but also lists all the profiles enabled for a particular text format, so the options on the profile selector can be filtered
  • It skips disabled profiles when building the list available profiles
dsnopek’s picture

FileSize
4.05 KB

Here's an updated patch! This changes 'default_profile' back to 'profile' so users who upgrade don't get an AJAX error until they clear their caches, and adds a boolean typecast to fix an issue where these changes stop working after changing the profile once.

cboyden’s picture

Status: Needs review » Reviewed & tested by the community

We've been using this patch, it's working well.

anon’s picture

Status: Reviewed & tested by the community » Fixed

Thanks.

  • anon committed 241cf88 on 7.x-3.x authored by dsnopek
    Issue #2919245 by dsnopek, anon: Disabled Profile Still Showing
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.