Fix check extension for businessfields

This commit is contained in:
Romain Neutron
2012-03-27 15:09:53 +02:00
parent e5ffd6fa57
commit 87ad76fc02
2 changed files with 10 additions and 7 deletions

View File

@@ -190,6 +190,8 @@ class module_console_checkExtension extends Command
, $usr_id , $usr_id
, FALSE , FALSE
, PHRASEA_MULTIDOC_DOCONLY , PHRASEA_MULTIDOC_DOCONLY
, ''
, array()
); );

View File

@@ -211,7 +211,8 @@ class searchEngine_adapter_phrasea_engine extends searchEngine_adapter_abstract
{ {
$proposals = self::proposalsToHTML($this->qp['main']->proposals); $proposals = self::proposalsToHTML($this->qp['main']->proposals);
if (trim($proposals) !== '') if (trim($proposals) !== '')
{ return "<div style='height:0px; overflow:hidden'>" . $this->qp['main']->proposals["QRY"] {
return "<div style='height:0px; overflow:hidden'>" . $this->qp['main']->proposals["QRY"]
. "</div><div class='proposals'>" . $proposals . "</div>"; . "</div><div class='proposals'>" . $proposals . "</div>";
} }
} }
@@ -358,7 +359,7 @@ class searchEngine_adapter_phrasea_engine extends searchEngine_adapter_abstract
public function get_suggestions(Session_Handler $session) public function get_suggestions(Session_Handler $session)
{ {
$props = array(); $props = array();
foreach($this->qp['main']->proposals['QUERIES'] as $prop) foreach ($this->qp['main']->proposals['QUERIES'] as $prop)
{ {
$props[] = array( $props[] = array(
'value' => $prop 'value' => $prop