fixed #1503
This commit is contained in:
parent
a555c976d7
commit
42f558833a
@ -50,7 +50,7 @@ class UpdateCategory extends Job
|
||||
return;
|
||||
}
|
||||
|
||||
if ($this->category->type != $this->request->get('type')) {
|
||||
if ($this->request->has('type') && ($this->request->get('type') != $this->category->type)) {
|
||||
$message = trans('messages.error.change_type', ['text' => implode(', ', $relationships)]);
|
||||
|
||||
throw new \Exception($message);
|
||||
|
@ -50,7 +50,7 @@ class UpdateTax extends Job
|
||||
return;
|
||||
}
|
||||
|
||||
if ($this->tax->type != $this->request->get('type')) {
|
||||
if ($this->request->has('type') && ($this->request->get('type') != $this->tax->type)) {
|
||||
$message = trans('messages.error.type', ['text' => implode(', ', $relationships)]);
|
||||
|
||||
throw new \Exception($message);
|
||||
|
Loading…
x
Reference in New Issue
Block a user