Permalink
Browse files

Fix oversight

  • Loading branch information...
flack committed Jan 8, 2018
1 parent 6949149 commit 65e6824b61e4ea7dcb83eada59ba64d592b87a36
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/midgard/admin/asgard/handler/object/manage.php
@@ -285,7 +285,7 @@ private function get_defaults($new_type)
// Allow setting defaults from query string, useful for things like "create event for today" and chooser
if ( isset($_GET['defaults'])
&& is_array($_GET['defaults'])) {
$get_defaults = array_intersect_key($_GET['defaults'], $this->schemadb->get('object')->get_fields());
$get_defaults = array_intersect_key($_GET['defaults'], $this->schemadb->get('object')->get('fields'));
$defaults = array_merge($defaults, array_map('trim', $get_defaults));
}
return $defaults;

0 comments on commit 65e6824

Please sign in to comment.