Version 5.1 - All the GraphQL #32
@ -694,7 +694,7 @@ class Model {
|
|||||||
|
|
||||||
foreach($mappings as $map)
|
foreach($mappings as $map)
|
||||||
{
|
{
|
||||||
if ($map['externalSite'] === 'myanimelist/anime')
|
if ($map['externalSite'] === 'myanimelist/manga')
|
||||||
{
|
{
|
||||||
return $map['externalId'];
|
return $map['externalId'];
|
||||||
}
|
}
|
||||||
|
@ -98,17 +98,7 @@ class Manga extends Controller {
|
|||||||
*/
|
*/
|
||||||
public function addForm()
|
public function addForm()
|
||||||
{
|
{
|
||||||
$raw_status_list = MangaReadingStatus::getConstList();
|
$statuses = MangaReadingStatus::KITSU_TO_TITLE;
|
||||||
|
|
||||||
$statuses = [];
|
|
||||||
|
|
||||||
foreach ($raw_status_list as $status_item)
|
|
||||||
{
|
|
||||||
$statuses[$status_item] = (string)$this->string($status_item)
|
|
||||||
->underscored()
|
|
||||||
->humanize()
|
|
||||||
->titleize();
|
|
||||||
}
|
|
||||||
|
|
||||||
$this->setSessionRedirect();
|
$this->setSessionRedirect();
|
||||||
$this->outputHTML('manga/add', [
|
$this->outputHTML('manga/add', [
|
||||||
@ -245,7 +235,8 @@ class Manga extends Controller {
|
|||||||
{
|
{
|
||||||
$body = $this->request->getParsedBody();
|
$body = $this->request->getParsedBody();
|
||||||
$id = $body['id'];
|
$id = $body['id'];
|
||||||
$response = $this->model->deleteLibraryItem($id);
|
$malId = $body['mal_id'];
|
||||||
|
$response = $this->model->deleteLibraryItem($id, $malId);
|
||||||
|
|
||||||
if ($response)
|
if ($response)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user