Currently it is possible to create Message Category types without Message Text.
However saving a Message Type is not possible anymore when Message UI is enabled.

EntityMetadataWrapperException: Unknown data property message_text. in EntityStructureWrapper->getPropertyInfo() (regel 339 van /home/dmsmidt/http/victor/profiles/commons/modules/contrib/entity/includes/entity.wrapper.inc).

This problem shouldn't be fixed in Message UI, because it's a more fundamental problem.
A Message Type (message bundle) always has the getText() method while the Message Text field is not mandatory.

If we want to always provide the getText() method it should return an empty string because there is no text.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dmsmidt created an issue. See original summary.

dmsmidt’s picture

This is a possible fix.

dmsmidt’s picture

Status: Active » Needs review
marcvangend’s picture

Status: Needs review » Reviewed & tested by the community

I verified that the patch works as advertised.

bluegeek9’s picture

Status: Reviewed & tested by the community » Closed (outdated)