Keyword

[SOLVED] K2 Plugin parameters problem

More
9 years 11 months ago #133132 by Milad
Hi,
I created a plugin for k2 in which I have implemented a select parameter to show in item edit page.
It works fine, but when I set multiple="true", problem shows up.

in single mode, this gets saved in database:
{"pluginnamefield":"5"}

but in Multiple mode:
{"pluginnamefield[":"5"}

Any Ideas?

Please Log in or Create an account to join the conversation.

More
9 years 11 months ago - 9 years 11 months ago #133133 by Milad
Replied by Milad on topic Re: K2 Plugin parameters problem
I've found the problem:
When multiple is true, field name will be something like this:
plugins[pluginnamefield[]]

but for it to save correctly, field name should be like this:
plugins[pluginnamefield][]

Im creating a pull request in Github.

update:
as I have seen, This problem is solved in new version in Github :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum