When using the panels IPE and Panopoly various forms will not submit. It makes it impossible to add panes to a page with both panopoly_magic and clientside_validation enabled simultaniously.

You might see alerts like while inserting a vew pane:

An error occurred while attempting to process /system/panopoly-magic: Cannot read property 'validator' of undefined

or something like this when trying to save:

An error occurred while attempting to process /panels/ajax/ipe/add-pane/panel_context%3Apage-home%3A%3A
_context%3A%3A%3A%3A/contentmain/views_panes/
-panel_pane_1/form: Cannot read property 'validator' of undefined

For now a simple solution is to do nothing when .validator is not set. That is how we patched it, and it seems to work fine.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

heathdutton’s picture

heathdutton’s picture

FileSize
621 bytes

Cleaned up the patch down to bare minimum changes.

heathdutton’s picture

FileSize
662 bytes
Jelle_S’s picture

Version: 7.x-2.x-dev » 7.x-1.x-dev
Status: Active » Patch (to be ported)

Fixed in 7.x-2.x-dev. Thanks for the patch!

  • Jelle_S committed 735d754 on 7.x-2.x authored by heathdutton
    Issue #2454141 by heathdutton: Compatibility with Panopoly Magic
    
Jelle_S’s picture

Status: Patch (to be ported) » Fixed

Fixed in 7.x-1.x

  • Jelle_S committed 7059ecc on 7.x-1.x
    Issue #2454141 by heathdutton: Compatibility with Panopoly Magic
    

Status: Fixed » Closed (fixed)

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