Description
Bug report
What I did
I have a repeatable field with a page_or_link field inside it. The data from it is stored in a fake extras db as json.
$this->crud->addField([
'name' => 'name',
'label' => 'label',
'type' => 'repeatable',
'fields' => [
[
'name' => ['type', 'link', 'page_id'],
'label' => "Type",
'type' => 'page_or_link',
'page_model' => '\Backpack\PageManager\app\Models\Page'
],
],
'min_rows' => 1,
'fake' => true,
'store_in' => 'extras'
]);
What I expected to happen
I expected to be able to add links that are either linking to a page on my website or an external link.
What happened
I am able to add links however when adding a 'External Link' or 'Page Link' the link value is never stored in the db it stays empty. When I add an 'Internal Link' the link value is stored.
What I've already tried to fix it
I have tried using the page_or_link field outside of a repeatable which works fine and stores the value of all the different links types in the db but I for my purpose I need it inside the repeatable.
Backpack, Laravel, PHP, DB version
When I run php artisan backpack:version
the output is:
PHP VERSION:
PHP 7.4.4 (cli) (built: Mar 17 2020 13:49:19) ( ZTS Visual C++ 2017 x64 )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
LARAVEL VERSION:
v8.35.1@d118c0df39e7524131176aaf76493eae63a8a602
BACKPACK VERSION:
4.1.41@44770347b918e42c052d0a138c24535b43e32472
Metadata
Metadata
Assignees
Type
Projects
Status