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

Fixed bug when an article has no creator/changer/author #93

Merged
merged 3 commits into from
Mar 7, 2017

Conversation

trickreich
Copy link
Contributor

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Fixed tickets fixes #88
Related issues/PRs --
License MIT
Documentation PR --

What's in this PR?

Frontend doesn't crash when creator, changer or author is empty.

Copy link
Member

@wachterjohannes wachterjohannes left a comment

Choose a reason for hiding this comment

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

else ACK


user.fetch({
global: false,
if (id) {
Copy link
Member

Choose a reason for hiding this comment

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

use early return:

if(!id){
    deferred.reject();

    return deferred;
}

...

@wachterjohannes wachterjohannes added this to the 0.2.0 milestone Mar 7, 2017
return deferred;
error: function() {
deferred.reject();
}.bind(this)
Copy link
Member

Choose a reason for hiding this comment

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

missing return

@wachterjohannes wachterjohannes merged commit 17cb175 into sulu:develop Mar 7, 2017
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.

Error after changing an article without setting a Changer
2 participants