List type config is empty

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
thestranger
Posts: 16
Joined: 06 Jun 2024, 04:34

List type config is empty

Post by thestranger » 06 Jun 2024, 04:56

Aimeos 2024.04
Laravel 11
PHP 8.2

List type config is empty.

Code: Select all

private array $beconfig = [
	'xplicit.courier.type' => [
		'code' => 'xplicit.courier.type',
		'internalcode' => 'xplicit.courier.type',
		'label' => 'Courier Type',
		'type'=> 'select',
		'internaltype'=> 'string',
		'default' => ['option1', 'option2'],
		'required' => true,
	],
];
Untitled.png
Untitled.png (120.88 KiB) Viewed 51043 times
I also tried with integer. Am I missing something? Should I be handling how lists look in backend? I'm confused.

User avatar
aimeos
Administrator
Posts: 8616
Joined: 01 Jan 1970, 00:00

Re: List type config is empty

Post by aimeos » 06 Jun 2024, 10:32

Thank you for your hint!
The problem has been fixed and a new version is available. Please run "composer up" to get the fixed version.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

thestranger
Posts: 16
Joined: 06 Jun 2024, 04:34

Re: List type config is empty

Post by thestranger » 07 Jun 2024, 00:26

It is still empty. I did try to clear cache just in case it was that. Could you tell me which files handle the creation of the select type so I could check? Also I did notice list and map just display the default values, there is no selection, or maybe I am reading it wrong?
Untitled2.png
Untitled2.png (136.4 KiB) Viewed 50956 times
Edit: same thing on a new installation
Last edited by thestranger on 07 Jun 2024, 00:46, edited 3 times in total.

User avatar
aimeos
Administrator
Posts: 8616
Joined: 01 Jan 1970, 00:00

Re: List type config is empty

Post by aimeos » 07 Jun 2024, 07:28

The change is in this file/commit: https://github.com/aimeos/ai-admin-jqad ... 7d551e2105

In your new screenshot, you aren't using "select" as type but "map" instead. To save a map, please click on the "check" button first before clicking on the "Save" button.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

thestranger
Posts: 16
Joined: 06 Jun 2024, 04:34

Re: List type config is empty

Post by thestranger » 09 Jun 2024, 07:04

Well, that doesn't matter anymore, the changes finally kicked in and it works now, thank you for your help.

Edit: it might matter, in the first image i was using select type and in the second image I was using list type which for some reason was looking exactly the same as map type. Just checked and it still looks the same, but I can work with select.

User avatar
aimeos
Administrator
Posts: 8616
Joined: 01 Jan 1970, 00:00

Re: List type config is empty

Post by aimeos » 09 Jun 2024, 16:25

For the backend, "list" and "map" are the same as documented here:
https://aimeos.org/docs/latest/provider ... figuration
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply