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

Set tags only if passed any. #518

Merged
merged 1 commit into from
Apr 20, 2018
Merged

Set tags only if passed any. #518

merged 1 commit into from
Apr 20, 2018

Conversation

Fisiu
Copy link
Contributor

@Fisiu Fisiu commented Apr 16, 2018

Signed-off-by: Mariusz Fik mariusz@fidano.pl

@nWidart
Copy link
Member

nWidart commented Apr 16, 2018

Hi,

Looks like the build is failing.
I also don't like how you intended everything, there are better ways to do this by for instance inverting the condition.

@@ -97,6 +97,11 @@ public static function allTags()
*/
public function setTags($tags, $type = 'slug')
{
// Avoid null $tags
Copy link
Member

Choose a reason for hiding this comment

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

Can you remove this comment please? :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done. PR updated.

Signed-off-by: Mariusz Fik <mariusz@fidano.pl>
@nWidart
Copy link
Member

nWidart commented Apr 20, 2018

Thanks! 👍

@nWidart nWidart merged commit 4c30c45 into AsgardCms:3.0 Apr 20, 2018
@Fisiu Fisiu deleted the allow_empty_tags branch April 20, 2018 08:23
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