philsturgeon / ee2-widgets

Widgets is a ExpressionEngine 2.1 module that allows even your least experienced client or to manage chunks of intelligent content on there site without needing to learn loads of tags, HTML or call you in to help.
http://devot-ee.com/add-ons/widgets
18 stars 13 forks source link

Fix issue with edit and add forms not displaying the widget title correctly #2

Closed jordanandree closed 11 years ago

jordanandree commented 11 years ago

During form save for edit and add widget forms, message would display without widget instance title like so:

There was a problem, widget "%s" has not been saved.

This commit will properly substitute the instance title for %s with sprintf if the instance title exists. If not instance title exists, then it will use the widget title (i.e. Google Maps)