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

Change "order" condition when a component is edited #2215

Merged
merged 1 commit into from
Oct 28, 2016

Conversation

nicolasfagotti
Copy link
Contributor

It's just me, or when the component order is false, the condition returns an empty value breaking the site after the update is confirmed? I had to change the way the condition is formatted for fixing the problem. Now the 0 is placed if the component order checking is false.

If this is happening on my case only, please ignore the pull request.

@@ -66,7 +66,7 @@
</fieldset>

<input type="hidden" name="component[user_id]" value="{{ $component->agent_id || $current_user->id }}">
<input type="hidden" name="component[order]" value="{{ $component->order || 0 }}">
<input type="hidden" name="component[order]" value="{{ $component->order ? $component->order : 0 }}">
Copy link
Contributor

Choose a reason for hiding this comment

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

should be ?: please

@nicolasfagotti
Copy link
Contributor Author

Change applied :)

@jbrooksuk jbrooksuk merged commit 0c0a219 into cachethq:2.4 Oct 28, 2016
@jbrooksuk
Copy link
Member

Thanks!

@nicolasfagotti nicolasfagotti deleted the componentOrderBugOnEdition branch January 16, 2017 20:16
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.

None yet

3 participants