Fixed bug from relation controller customization improvements PR
This commit is contained in:
parent
b8a6571c1c
commit
c2544d40b4
|
|
@ -1499,12 +1499,12 @@ class RelationController extends ControllerBehavior
|
|||
case 'morphToMany':
|
||||
case 'morphedByMany':
|
||||
case 'belongsToMany':
|
||||
return ['create', 'add', 'delete', 'remove'];
|
||||
$buttons = ['create', 'add', 'delete', 'remove'];
|
||||
|
||||
case 'hasOne':
|
||||
case 'morphOne':
|
||||
case 'belongsTo':
|
||||
return ['create', 'update', 'link', 'delete', 'unlink'];
|
||||
$buttons = ['create', 'update', 'link', 'delete', 'unlink'];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue