Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using GET by default (although configurable) in search forms. Fixes #… #849

Closed
wants to merge 2 commits into from

Conversation

4lejandrito
Copy link
Member

No description provided.

* @memberof ClayManagementToolbar
* @type {?(string|undefined)}
*/
searchFormMethod: Config.string().value('GET'),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@4lejandrito could you please change this to `Config.oneOf(['GET', 'POST']).value('GET') ?

@@ -757,7 +762,7 @@
action="{$searchActionURL}"
{/if}

method="POST"
method="{$searchFormMethod}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because a default value is defined in the js component we need to to the same here, so this should be:
{$searchFormMethod ?: 'GET'}

@carloslancha
Copy link
Contributor

Just started reviewing :)

:octocat: Sent from GH.

@carloslancha
Copy link
Contributor

Resent: #852

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants