diff --git a/Frameworks/D2W/ERModernDirectToWeb/Sources/er/modern/directtoweb/components/relationships/ERMD2WEditToOneTypeAhead.java b/Frameworks/D2W/ERModernDirectToWeb/Sources/er/modern/directtoweb/components/relationships/ERMD2WEditToOneTypeAhead.java index 830c9b6dd8e..ea4204c9afe 100644 --- a/Frameworks/D2W/ERModernDirectToWeb/Sources/er/modern/directtoweb/components/relationships/ERMD2WEditToOneTypeAhead.java +++ b/Frameworks/D2W/ERModernDirectToWeb/Sources/er/modern/directtoweb/components/relationships/ERMD2WEditToOneTypeAhead.java @@ -34,6 +34,7 @@ import er.extensions.foundation.ERXStringUtilities; import er.extensions.foundation.ERXUtilities; import er.extensions.foundation.ERXValueUtilities; +import er.modern.directtoweb.components.ERMDAjaxNotificationCenter; import er.modern.directtoweb.components.buttons.ERMDActionButton; /** @@ -226,6 +227,12 @@ public WOActionResults selectObject() { object().removeObjectFromBothSidesOfRelationshipWithKey(existingObj, propertyKey()); } } + // support for ERMDAjaxNotificationCenter + if (ERXValueUtilities.booleanValueWithDefault(d2wContext().valueForKey("shouldObserve"), false)) { + NSNotificationCenter.defaultCenter().postNotification( + ERMDAjaxNotificationCenter.PropertyChangedNotification, + parent().valueForKeyPath("d2wContext")); + } // NSLog.out.appendln("Select Object Called: " + object().valueForKey(propertyKey()) + " " + searchValue()); return null; }