Commit 19dc55b3 authored by Jon Pugh's avatar Jon Pugh

handle save command, with no context name specified.

parent 364da11d
......@@ -96,7 +96,9 @@ abstract class Command extends BaseCommand
}
// If context_name is not specified, ask for it.
elseif ($this::CONTEXT_REQUIRED && empty($this->input->getOption('context'))) {
elseif (($this::CONTEXT_REQUIRED && empty($this->input->getOption('context')))
|| ($this->getName() == 'save' && empty($this->input->getOption('context')))
) {
$this->askForContext();
$this->input->setOption('context', $this->context_name);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment