diff --git a/code/model/Translatable.php b/code/model/Translatable.php index 2dbba2e..b5dc126 100755 --- a/code/model/Translatable.php +++ b/code/model/Translatable.php @@ -1323,6 +1323,11 @@ class Translatable extends DataExtension implements PermissionProvider { $newTranslation->_TranslationGroupID = $translationGroupID ? $translationGroupID : $this->owner->ID; if($saveTranslation) $newTranslation->write(); + // run callback on page for translation related hooks + if($newTranslation->hasMethod('onTranslatableCreate')){ + $newTranslation->onTranslatableCreate($saveTranslation); + } + return $newTranslation; }