Santhosh has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/255086

Change subject: Do not delete the saved translation when published.
......................................................................

Do not delete the saved translation when published.

This content is required for some of the planned features:
a) Allow resuming translation even after published, if target article
did not change
b) Parallel corpora

Change-Id: Ic90e63ee9e3f9ef3ed433c67e4b6bff554088292
---
M api/ApiContentTranslationPublish.php
1 file changed, 0 insertions(+), 3 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ContentTranslation 
refs/changes/86/255086/1

diff --git a/api/ApiContentTranslationPublish.php 
b/api/ApiContentTranslationPublish.php
index 96e573b..159c490 100755
--- a/api/ApiContentTranslationPublish.php
+++ b/api/ApiContentTranslationPublish.php
@@ -361,9 +361,6 @@
                if ( $params['status'] === 'draft' ) {
                        // Save the draft
                        ContentTranslation\Draft::save( $translationId, 
$params['html'] );
-               } else {
-                       // Delete the draft
-                       ContentTranslation\Draft::delete( $translationId );
                }
        }
 

-- 
To view, visit https://gerrit.wikimedia.org/r/255086
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic90e63ee9e3f9ef3ed433c67e4b6bff554088292
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ContentTranslation
Gerrit-Branch: master
Gerrit-Owner: Santhosh <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to