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

[BUGFIX] Improve sys:cron:run input handling #478

Merged

Conversation

aadmathijssen
Copy link
Contributor

When sys:cron:run is called without any arguments, a dialog is presented to the user where he can choose a job by entering a number.
It was however also possible to execute a job by entering invalid input:

  • if 0 is entered, the last job in the list was executed
  • if a negative number was entered, the first job in the list was executed
  • if non-numeric value was entered, the last job in the list was executed

This commit fixes the above issues by showing an error if incorrect input is supplied.

When sys:cron:run is called without any arguments, a dialog is presented to the user where he can choose a job by entering a number.
It was however also possible to execute a job by entering invalid input:
- if 0 is entered, the last job in the list was executed
- if a negative number was entered, the first job in the list was executed
- if non-numeric value was entered, the last job in the list was executed

This commit fixes the above issues by showing an error if incorrect input is supplied.
cmuench added a commit that referenced this pull request Jan 28, 2015
…handling

[BUGFIX] Improve sys:cron:run input handling
@cmuench cmuench merged commit ffbab69 into netz98:develop Jan 28, 2015
@cmuench
Copy link
Member

cmuench commented Jan 28, 2015

Thanks

steverobbins pushed a commit to steverobbins/n98-magerun that referenced this pull request Apr 7, 2015
…input-handling

[BUGFIX] Improve sys:cron:run input handling
steverobbins pushed a commit to steverobbins/n98-magerun that referenced this pull request Apr 7, 2015
…input-handling

[BUGFIX] Improve sys:cron:run input handling
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

2 participants