Fix tabs sometimes break subsequent namespaces

This commit is contained in:
Nathan Gray 2013-06-10 23:29:48 +00:00
parent 7da0e6d27b
commit b45a7d7439

View File

@ -14,7 +14,7 @@
/**
* eTemplate Tabs widget stacks multiple sub-templates and lets you switch between them
*/
class etemplate_widget_tabbox extends etemplate_widget
class etemplate_widget_tabbox extends etemplate_widget_box
{
/**
* Validate input - just pass through, tabs doesn't care
@ -27,7 +27,7 @@ class etemplate_widget_tabbox extends etemplate_widget
*/
public function validate($cname, array $expand, array $content, &$validated=array())
{
$form_name = self::form_name($cname, $this->id, $expand);
$form_name = $cname;
if (!$this->is_readonly($cname, $form_name))
{