Skip to content

Commit

Permalink
Merge "SpecialBooksources: Fix submitting the form from a subpage link"
Browse files Browse the repository at this point in the history
  • Loading branch information
jenkins-bot authored and Gerrit Code Review committed Oct 16, 2016
2 parents 2f29abe + 9494128 commit 6ee3f9a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion includes/specials/SpecialBooksources.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,9 @@ private function buildForm( $isbn ) {
],
];

HTMLForm::factory( 'ooui', $formDescriptor, $this->getContext() )
$context = new DerivativeContext( $this->getContext() );
$context->setTitle( $this->getPageTitle() );
HTMLForm::factory( 'ooui', $formDescriptor, $context )
->setWrapperLegendMsg( 'booksources-search-legend' )
->setSubmitTextMsg( 'booksources-search' )
->setMethod( 'get' )
Expand Down

0 comments on commit 6ee3f9a

Please sign in to comment.