Matthias Mullie has uploaded a new change for review. https://gerrit.wikimedia.org/r/93485
Change subject: Fix editing of posts ...................................................................... Fix editing of posts https://gerrit.wikimedia.org/r/#/c/91306/ has introduced a small regression because data-post-id is no longer duplicated on both .flow-post-container and .flow-post elements. This JS was still looking at the one where the data attribute was now removed. Change-Id: I7593f8515bfcec7ddf74e22942efeb3ebdc2928b --- M modules/discussion/forms.js 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Flow refs/changes/85/93485/1 diff --git a/modules/discussion/forms.js b/modules/discussion/forms.js index 50b0da4..9c68571 100644 --- a/modules/discussion/forms.js +++ b/modules/discussion/forms.js @@ -128,7 +128,7 @@ $contentContainer = $postContainer.find( '.flow-post-content' ), workflowId = $( this ).flow( 'getTopicWorkflowId' ), pageName = $( this ).closest( '.flow-container' ).data( 'page-title' ), - postId = $postContainer.data( 'post-id' ); + postId = $postContainer.closest( '.flow-post-container' ).data( 'post-id' ); if ( $postContainer.find( '.flow-edit-post-form' ).length ) { return; -- To view, visit https://gerrit.wikimedia.org/r/93485 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I7593f8515bfcec7ddf74e22942efeb3ebdc2928b Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Flow Gerrit-Branch: master Gerrit-Owner: Matthias Mullie <mmul...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits