diff --git a/htdocs/admin/agenda_other.php b/htdocs/admin/agenda_other.php
index 55b61145b6a..bd9587a4440 100644
--- a/htdocs/admin/agenda_other.php
+++ b/htdocs/admin/agenda_other.php
@@ -432,29 +432,6 @@ if ($conf->global->MAIN_FEATURES_LEVEL > 0)
}
}
-// AGENDA_SHOW_LINKED_OBJECT
-$var=!$var;
-print '
'."\n";
-print '| '.$langs->trans("AGENDA_SHOW_LINKED_OBJECT").' | '."\n";
-print ' | '."\n";
-print ''."\n";
-if (! empty($conf->use_javascript_ajax))
-{
- print ajax_constantonoff('AGENDA_SHOW_LINKED_OBJECT');
-}
-else
-{
- if (empty($conf->global->AGENDA_SHOW_LINKED_OBJECT))
- {
- print ''.img_picto($langs->trans("Disabled"),'switch_off').'';
- }
- else
- {
- print ''.img_picto($langs->trans("Enabled"),'switch_on').'';
- }
-}
-print ' |
'."\n";
-
print '';
dol_fiche_end();
diff --git a/htdocs/comm/action/card.php b/htdocs/comm/action/card.php
index 2b10f0c2f26..02ee84dc2de 100644
--- a/htdocs/comm/action/card.php
+++ b/htdocs/comm/action/card.php
@@ -1114,7 +1114,7 @@ if ($id > 0)
$events[]=array('method' => 'getContacts', 'url' => dol_buildpath('/core/ajax/contacts.php?showempty=1',1), 'htmlname' => 'contactid', 'params' => array('add-customer-contact' => 'disabled'));
// TODO Refresh also list of project if $conf->global->PROJECT_ALLOW_TO_LINK_FROM_OTHER_COMPANY not defined with list linked to socid ?
// FIXME If we change company, we may get a project that does not match
- print $form->select_company($object->socid, 'socid', '', 'SelectThirdParty', 1, 0, $events, 0);
+ print $form->select_company($object->socid, 'socid', '', 'SelectThirdParty', 1, 0, $events, 0, 'minwidth200');
print '';
print '';
diff --git a/htdocs/comm/action/index.php b/htdocs/comm/action/index.php
index 0a8ab49ea38..307d6417285 100644
--- a/htdocs/comm/action/index.php
+++ b/htdocs/comm/action/index.php
@@ -160,7 +160,6 @@ if ($action =='delete_action')
}
-
/*
* View
*/
diff --git a/htdocs/core/class/conf.class.php b/htdocs/core/class/conf.class.php
index 28a287971a8..578ed17049e 100644
--- a/htdocs/core/class/conf.class.php
+++ b/htdocs/core/class/conf.class.php
@@ -580,6 +580,12 @@ class Conf
if (empty($this->global->MAIN_SIZE_SHORTLIST_LIMIT)) $this->global->MAIN_SIZE_SHORTLIST_LIMIT=3;
+ // Save inconsistent option
+ if (empty($conf->global->AGENDA_USE_EVENT_TYPE) && $conf->global->AGENDA_DEFAULT_FILTER_TYPE == 'AC_NON_AUTO')
+ {
+ $conf->global->AGENDA_DEFAULT_FILTER_TYPE='0'; // 'AC_NON_AUTO' does not exists when AGENDA_DEFAULT_FILTER_TYPE is not on.
+ }
+
// For backward compatibility
if (isset($this->product)) $this->produit=$this->product;
if (isset($this->facture)) $this->invoice=$this->facture;
diff --git a/htdocs/societe/ajax/company.php b/htdocs/societe/ajax/company.php
index 32f57f73c25..d57a6f3fca6 100644
--- a/htdocs/societe/ajax/company.php
+++ b/htdocs/societe/ajax/company.php
@@ -83,11 +83,11 @@ else
sort($match);
$id = (! empty($match[0]) ? $match[0] : '');
- if (! GETPOST($htmlname) && ! GETPOST($id)) return;
-
// When used from jQuery, the search term is added as GET param "term".
- $searchkey=(GETPOST($id)?GETPOST($id):(GETPOST($htmlname)?GETPOST($htmlname):''));
+ $searchkey=(($id && GETPOST($id, 'alpha'))?GETPOST($id, 'alpha'):(($htmlname && GETPOST($htmlname, 'alpha'))?GETPOST($htmlname, 'alpha'):''));
+ if (! $searchkey) return;
+
$form = new Form($db);
$arrayresult=$form->select_thirdparty_list(0,$htmlname,$filter,1,0,0,null,$searchkey,$outjson);