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.
Comment | File | Size | Author |
---|---|---|---|
#2 | message-getText_no_Message_Text_Field-2624474-01.patch | 567 bytes | dmsmidt |
Comments
Comment #2
dmsmidtThis is a possible fix.
Comment #3
dmsmidtComment #4
marcvangendI verified that the patch works as advertised.
Comment #5
bluegeek9 CreditAttribution: bluegeek9 as a volunteer commented