FriendsOfREDAXO / FriendsOfREDAXO/mform

bei `addCustomLinkMultipleField` kann `extern` in einem Repeater-Feld nicht deaktiviert werden

Open
#459 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
84
Forks
22
Avg merge
4h 9m
Merged PRs (30d)
5

Description

Mit folgendem Code wird trotzdem der Button für einen externen Link angezeigt:
```
$formtorepeat = MForm::factory()
->addFieldsetArea(
'Akkordeon',
MForm::factory()
->addCustomLinkMultipleField('team_links', [
'label' => 'Team',
'btn_add' => 'Team-Mitglied hinzufügen',
'ylink' => 'Team::rex_yf_team::name',
'data-intern' => 'false',
'data-extern' => 'false',
'data-media' => 'false',
'data-mailto' => 'false',
'data-anchor' => 'false',
'data-tel' => 'false',
])

);

echo MForm::factory()
->addTextField(2, ['label' => 'Titel'])
->addRepeaterElement(19, $formtorepeat, true, true, [
'label' => 'Abschnitte',
'btn_text' => 'Abschnitt hinzufügen',
'confirm_delete' => true,
'confirm_delete_msg' => 'Abschnitt wirklich entfernen?',
'collapsed' => true,
'first_open' => false,
'show_toggle_all' => false,
])
->show();

```
Ansonsten funktioniert alles normal.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at MForm::addCustomLinkMultipleField and inspect how its data-extern option is handled when the field is nested in addRepeaterElement. Reproduce the provided PHP form configuration and verify that the external-link button is absent while the other link options continue to work.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.