Permalink
Browse files

Adjust check to correspond with what is used in cofig

  • Loading branch information...
flack committed Sep 5, 2018
1 parent 29406f8 commit 4cde29cee3b8a9949ff8bf632424b54d989324ad
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/midgard/admin/asgard/schemadb.php
@@ -296,12 +296,12 @@ private function _add_longtext_field($key, $type)
];
}
private function _add_name_field($key, $name_obj)
private function _add_name_field($key, midcom_core_dbaobject $name_obj)
{
$type_urlname_config = [];
$allow_unclean_name_types = $this->_config->get('allow_unclean_names_for');
foreach ($allow_unclean_name_types as $allow_unclean_name_types_type) {
if ($name_obj instanceof $allow_unclean_name_types_type) {
if ($name_obj->__object instanceof $allow_unclean_name_types_type) {
$type_urlname_config['allow_unclean'] = true;
break;
}

0 comments on commit 4cde29c

Please sign in to comment.