diff --git a/htdocs/create.php b/htdocs/create.php index 0ed5a3c..e9c69fb 100644 --- a/htdocs/create.php +++ b/htdocs/create.php @@ -46,8 +46,7 @@ if (! $request['template']->getRDN()) # Some other attribute checking... foreach ($request['template']->getAttributes() as $attribute) { # Check that our Required Attributes have a value - we shouldnt really return a hit here, the template engine shouldnt have allowed this to slip through. - # @todo this isIgnoredAttr() function is missing? - if ($attribute->isRequired() && ! count($attribute->getValues()) && ! $app['server']->isIgnoredAttr($attr->getName())) + if ($attribute->isRequired() && ! count($attribute->getValues())) error(sprintf(_('You left the value blank for required attribute (%s).'), $attribute->getName(false)),'error','index.php'); } diff --git a/htdocs/create_confirm.php b/htdocs/create_confirm.php index 6727fb1..96a30a8 100644 --- a/htdocs/create_confirm.php +++ b/htdocs/create_confirm.php @@ -40,8 +40,7 @@ if (! $request['template']->getRDN()) # Some other attribute checking... foreach ($request['template']->getAttributes() as $attribute) { # Check that our Required Attributes have a value - we shouldnt really return a hit here, the template engine shouldnt have allowed this to slip through. - # @todo this isIgnoredAttr() function is missing? - if ($attribute->isRequired() && ! count($attribute->getValues()) && ! $app['server']->isIgnoredAttr($attr->getName())) + if ($attribute->isRequired() && ! count($attribute->getValues())) error(sprintf(_('You left the value blank for required attribute (%s).'), $attribute->getName(false)),'error','index.php'); }