- add active authors and contributors

- check redundant authors and contributors
This commit is contained in:
Arno Kaimbacher 2019-09-16 18:34:32 +02:00
parent 8f040c2770
commit 68add9025f
3 changed files with 20 additions and 6 deletions

View file

@ -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);
}
}