- add active authors and contributors
- check redundant authors and contributors
This commit is contained in:
parent
8f040c2770
commit
68add9025f
3 changed files with 20 additions and 6 deletions
|
@ -335,6 +335,8 @@ class IndexController extends Controller
|
|||
$dataset->persons()->attach($person['id'], $pivot_data);
|
||||
} else {
|
||||
$dataPerson = new Person($person);
|
||||
$dataPerson->status = true;
|
||||
$dataPerson->name_type = "Organizational";
|
||||
$dataset->persons()->save($dataPerson, $pivot_data);
|
||||
}
|
||||
}
|
||||
|
@ -360,6 +362,8 @@ class IndexController extends Controller
|
|||
$dataset->persons()->attach($contributor['id'], $pivot_data);
|
||||
} else {
|
||||
$dataContributor = new Person($contributor);
|
||||
$dataContributor->status = true;
|
||||
$dataContributor->name_type = "Organizational";
|
||||
$dataset->persons()->save($dataContributor, $pivot_data);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue