Skip to content

Commit

Permalink
Initial commit for MM 2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
zonky2 committed Aug 20, 2024
1 parent e432ddb commit 2a112ad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Contao/Widget/FormTextFieldMultiple.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,22 @@

namespace ContaoCommunityAlliance\FormTextFieldMultipleBundle\Contao\Widget;

use Contao\FormTextField;
use Contao\FormText;

/**
* This class is used for the contao frontend view as template.
*
* @psalm-suppress PropertyNotSetInConstructor
* @psalm-suppress UndefinedThisPropertyFetch
*/
class FormTextFieldMultiple extends FormTextField
class FormTextFieldMultiple extends FormText
{
/**
* Template
*
* @var string
*/
protected $strTemplate = 'form_textfield_multiple';
protected $strTemplate = 'form_text_multiple';

/**
* Parse the template file and return it as string
Expand All @@ -50,7 +50,7 @@ class FormTextFieldMultiple extends FormTextField
public function parse($arrAttributes = null): string
{
if (!$this->multiple) {
$this->strTemplate = 'form_textfield';
$this->strTemplate = 'form_text';
}

return parent::parse($arrAttributes);
Expand Down

0 comments on commit 2a112ad

Please sign in to comment.