Currently, if an argument on a panel pane is empty, it still takes priority over the pane_description text

For example, I have a view pane with description:

Headline, 403x250 image, teaser and 2 related links

And an argument for taxonomy term id, exposed and set via pane config.

However, if the panel pane config form is saved, the admin pane text becomes:
Category:
The pane description is gone and an empty "argument name: no value" text shown instead.

The attached patch fixes the issue with a simple if(!empty($value)){} check

cheers,

DT

P.S Thanks for the awesome module work, excellent stuff.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

davidwhthomas’s picture

Issue summary: View changes

Formatting fix

merlinofchaos’s picture

Status: Needs review » Fixed

Committed! Thanks for the patch!

Status: Fixed » Closed (fixed)

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

Anonymous’s picture

Issue summary: View changes

Simplify