Commit e019d43a authored by Feu's avatar Feu
Browse files

les asso c'est plus simple avec une liste

parent 19344df4
......@@ -489,7 +489,7 @@ class form extends stdcontents
return;
}
if ( !$instance->can_fsearch() || !is_null($conds) )
if ( !$instance->can_fsearch() || !is_null($conds) || $instance->prefer_list() )
{
if ( !$instance->can_enumerate() )
return;
......
......@@ -429,6 +429,10 @@ class asso extends stdentity
return $path;
}
function prefer_list()
{
return true;
}
}
......
......@@ -105,6 +105,12 @@ class stdentity
htmlentities($this->get_display_name(),ENT_COMPAT,"UTF-8")."</a>";
}
function prefer_list()
{
return false;
}
/**
* Check if class can enumarate its elements using enumerate.
* @return true if it can enumerate, else return false
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment