I have cloned the default option and got the machine name as "clone_of_default". When I renamed it to something else and saved, it won't change. The machine name is always shows as "clone_of_default"

CommentFileSizeAuthor
#3 optionset_name-2111201-3.patch451 bytesplopesc
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

minorOffense’s picture

Status: Active » Closed (works as designed)

That's a ctools thing. Nothing I can do about it. Best way would be to export it and rename it in code.

abx’s picture

Thanks

plopesc’s picture

Title: Can't change machine name after clone option » Can't change machine name
Version: 7.x-2.0-alpha3 » 7.x-2.x-dev
Issue summary: View changes
Status: Closed (works as designed) » Needs review
FileSize
451 bytes

Hello

Although you can't edit the the optionset machine name, the name textfield can be editable, so it is a bit annoying for users, given that they can edit the textfield, but changes are not stored.

So, I propose mark as disabled the machine name textfield when you're editing the optionset. With this change, users are aware of they can't edit the machine name.

Thank you!

plopesc’s picture

Title: Can't change machine name » Can't change machine name but it can be edited in the optionset form
jenlampton’s picture

Status: Needs review » Reviewed & tested by the community

This looks like a good marginal improvement. It would be nice if we filed an issue against ctools too, so that a new machine name could be chosen when cloning items.

minorOffense’s picture

Makes sense to me. I'll include this in the next release.

  • minorOffense committed 8a52996 on 7.x-2.x authored by plopesc
    Issue #2111201 by plopesc: Can't change machine name but it can be...
  • minorOffense committed a2d1780 on 7.x-2.x authored by plopesc
    Issue #2111201 by plopesc: Can't change machine name but it can be...
minorOffense’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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