Skip to content
Browse files

noob issue fixed

  • Loading branch information...
1 parent ab76e61 commit e6b90ca64bb4491d5dacb6bd8ac5345d14d491d8 @smaldini smaldini committed Jan 16, 2013
View
2 grails-app/services/org/grails/plugin/platform/test/SampleService.groovy
@@ -51,7 +51,7 @@ class SampleService {
@Listener(topic = 'sampleHello', namespace = 'platformCore')
def testEvent() throws Exception{
- println "Hello (bas) !!!!!!"
+ println "Hello (bas) !!!!"
'worked 1'
}
View
2 src/groovy/org/grails/plugin/platform/events/EventsImpl.groovy
@@ -164,7 +164,7 @@ class EventsImpl implements Events {
EventMessage buildEvent(String pluginName, String namespace, String topic, data, Map params) {
boolean gormSession = params?.containsKey(EventsPublisher.GORM) ? params.remove(EventsPublisher.GORM) as boolean : true
- namespace = params?.remove(EventsPublisher.NAMESPACE) ?: namespace ?: ListenerId.parse(topic)
+ namespace = params?.remove(EventsPublisher.NAMESPACE) ?: namespace ?: ListenerId.parse(topic).namespace
checkNamespace pluginName, namespace
namespace = namespace ?: APP_NAMESPACE

0 comments on commit e6b90ca

Please sign in to comment.
Something went wrong with that request. Please try again.