forked from GNUsocial/gnu-social
[SETTINGS][NOTIFICATIONS] Fix error when displaying the user notification settings page
This commit is contained in:
parent
69202ce7a0
commit
ed9e4be6b2
@ -197,10 +197,10 @@ class UserPanel extends AbstractController
|
|||||||
case Types::INTEGER:
|
case Types::INTEGER:
|
||||||
if ($name == 'target_actor_id') {
|
if ($name == 'target_actor_id') {
|
||||||
$form_defs['placeholder'][$name] = ['target_actors', TextType::class, ['data' => $val, 'label' => _m($labels[$name]), 'help' => _m($help[$name])], 'transformer' => ActorArrayTransformer::class];
|
$form_defs['placeholder'][$name] = ['target_actors', TextType::class, ['data' => $val, 'label' => _m($labels[$name]), 'help' => _m($help[$name])], 'transformer' => ActorArrayTransformer::class];
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
// no break
|
break;
|
||||||
default:
|
default:
|
||||||
|
dd($type_str);
|
||||||
throw new Exception("Structure of table user_notification_prefs changed in a way not accounted to in notification settings ({$name})", 500);
|
throw new Exception("Structure of table user_notification_prefs changed in a way not accounted to in notification settings ({$name})", 500);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user