Steps to reproduce

  • Add breakpoints to the .info file of a theme.
  • Enable the theme (I've been using drush pm-enable redux_ual --yes).
  • Enable the theme again.

Expected result

The theme will be enabled without issue.

Actual result

The Breakpoints module will throw PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'my_theme' for key 'machine_name'

Notes

This seems to be the result of breakpoints_themes_enabled not checking whether or not a particular breakpoint group exists before attempting to create it.

CommentFileSizeAuthor
#3 renabling_themes-2821220-2.patch2.5 KBw00zle

Comments

w00zle created an issue. See original summary.

w00zle’s picture

Assigned: Unassigned » w00zle
w00zle’s picture

StatusFileSize
new2.5 KB

I've written a simple patch that attempts to find an exisiting breakpoint group for the theme. If no group is found, a new one is created.

w00zle’s picture

Assigned: w00zle » Unassigned
Status: Active » Needs review
attiks’s picture

Version: 7.x-1.4 » 7.x-1.x-dev
Status: Needs review » Fixed

Thanks

  • attiks committed 7835fdb on 7.x-1.x authored by w00zle
    Issue #2821220 by w00zle: Re-enabling themes with breakpoints causes...

Status: Fixed » Closed (fixed)

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