Google-Maps-for-Craft icon indicating copy to clipboard operation
Google-Maps-for-Craft copied to clipboard

Default Button Setting not saving in a specific case

Open mediagirl opened this issue 11 years ago • 5 comments

http://screencast.com/t/dq98YdVCt

When I uncheck the "ALL" option to deselect all options for Default Buttons and then click SAVE, the setting isn't saved correctly. All options are still checked when I go back to settings page.

mediagirl avatar Sep 12 '14 19:09 mediagirl

I am not getting this error. When I uncheck all and save, all the options are unchecked as they should be. So I am not sure how to do duplicate this error. Is the field within a matrix or anything special?

objectivehtml avatar Sep 12 '14 19:09 objectivehtml

I'm seeing this in FireFox 32.

Here's a quick video showing behavior: http://screencast.com/t/hKLELSee0Pm

mediagirl avatar Sep 12 '14 19:09 mediagirl

This is a bug in Craft I think. I am just reusing their code to build the settings page. It works for Chrome, but apparently not for Firefox. Here is my code in my field type settings. You can see, it's just referencing the global Craft macro they use. Does this happen on any other Craft field?

{{ forms.checkboxSelectField({
    label: "Default Buttons"|t,
    instructions: "Which buttons should be shown on the map?"|t,
    id: 'displayButtons',
    name: 'displayButtons',
    options: craft.config.get('availableMapButtons', 'googlemaps'),
    values: settings.displayButtons
}) }}

objectivehtml avatar Sep 14 '14 23:09 objectivehtml

Actually, now I am seeing this bug in Chrome. Super weird. I'll take a look at getting this fixed.

objectivehtml avatar Sep 14 '14 23:09 objectivehtml

I'm having this issue right now. Each time I go back to edit my field type, I have to make sure to uncheck everything again before saving.

echantigny avatar Apr 17 '15 18:04 echantigny