elliot-sawyer / silverstripe-linkfield

Adds a Linkfield for gorriecoe/silverstripe-link
BSD 3-Clause "New" or "Revised" License
9 stars 25 forks source link

UX for multiple Links on a page incorrect #25

Open vinstah opened 3 years ago

vinstah commented 3 years ago

Hello, I just noticed that when adding a has one link after having an existing many_many link you get both field types. somehow the field is getting merged with both

SS 4.6

Page.php $many_many = ['HeaderLinks' = Link::class];

WorkPage.php $has_one = ['WorkLink' = Link::class];

on work page I var_dump'd the $this->isOneOrMany() function from Link class and got 'many', 'one' DeepinScreenshot_select-area_20210203085419