mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-09-24 10:58:20 +00:00
Merge "Fix check for null edits"
This commit is contained in:
commit
1b83e64440
|
@ -197,7 +197,7 @@ class ApiDiscussionToolsEdit extends ApiBase {
|
|||
break;
|
||||
}
|
||||
|
||||
if ( !isset( $result['newrevid'] ) ) {
|
||||
if ( !isset( $result['newrevid'] ) && isset( $result['result'] ) && $result['result'] === 'success' ) {
|
||||
// No new revision, so no changes were made to the page (null edit).
|
||||
// Comment was not actually saved, so for this API, that's an error.
|
||||
// This is probably because changes were inside a transclusion's HTML?
|
||||
|
|
Loading…
Reference in a new issue