* specified key.
*
* @param string $key Array key under which these fields should be named
- * @return HTMLFormFields[]
+ * @return HTMLFormField[]
*/
protected function createFieldsForKey( $key ) {
$fields = array();
'cssclass' => 'mw-htmlform-cloner-delete-button',
'default' => $this->msg( $label )->text(),
) );
+ $field->mParent = $this->mParent;
$v = $field->getDefault();
if ( $displayFormat === 'table' ) {
'cssclass' => 'mw-htmlform-cloner-create-button',
'default' => $this->msg( $label )->text(),
) );
+ $field->mParent = $this->mParent;
$html .= $field->getInputHTML( $field->getDefault() );
return $html;