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

[rest:disable] Fix rest disable functionality #2916

Merged
merged 1 commit into from
Nov 11, 2016

Conversation

edutrul
Copy link
Contributor

@edutrul edutrul commented Nov 11, 2016

According to issue #2911

);
return true;
}
$message = sprintf($this->trans('commands.rest.disable.messages.already-disabled'), $resource_id);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a new string to translate, I am adding this because if you try to disable a rest which is already disabled then a message like
Rest ID "%s" was already disabled

I think makes sense,
else
since it is a new string to translate(and takes effort to do it in != languages) then I think I can remove that line and move lines 106-111 into 114 (which is out of "if" conditional) so that it displays always success message without taking care if it is already disabled
What do you think @enzolutions ?

@enzolutions enzolutions added this to the 1.0.0-rc9 milestone Nov 11, 2016
@enzolutions
Copy link
Contributor

Thanks @edutrul

@enzolutions enzolutions merged commit bc32b76 into hechoendrupal:master Nov 11, 2016
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