diff --git a/build/debian/README.howto b/build/debian/README.howto
index 399c4f07a1f..e040cd6dced 100644
--- a/build/debian/README.howto
+++ b/build/debian/README.howto
@@ -152,7 +152,7 @@ tag 729538 -moreinfo
-##### Testing a package into unstable env
+##### Testing a package into a chroot environment
Check you have a mysql server available from another interface than "localhost".
Set line in /etc/mysql/my.cnf if required and restart mysql
@@ -160,9 +160,11 @@ Set line in /etc/mysql/my.cnf if required and restart mysql
[mysqld]
bind-address = *
-Create a chroot called "unstable-amd64-sbuild".
+Create a chroot called "jessie" or "unstable".
Chroot env is stored into /srv/chroot directory.
> sudo sbuild-createchroot --keyring=unstable /srv/chroot/unstable http://ftp.uk.debian.org/debian
+or
+> sudo sbuild-createchroot jessie /srv/chroot/jessie http://ftp.uk.debian.org/debian
Pour lister les env chroot
> schroot -l
@@ -170,8 +172,9 @@ or
> ls /srv/chroot
Puis pour se connecter et préparer l'environnement
-> schroot -c name_of_chroot
+> schroot -c name_of_chroot (exemple schroot -c unstable-amd64-sbuild)
> cat /etc/debian_chroot to check which debian branch we are into
+> apt-get install vi
> vi /usr/sbin/policy-rc.d and replace return code 101 (not allowed) into 0 (ok)
> apt-get update
> apt-get upgrade
diff --git a/htdocs/admin/defaultvalues.php b/htdocs/admin/defaultvalues.php
index 8a9bd4f209b..ec4c5fd4605 100644
--- a/htdocs/admin/defaultvalues.php
+++ b/htdocs/admin/defaultvalues.php
@@ -37,7 +37,7 @@ if (!$user->admin) accessforbidden();
$id=GETPOST('rowid','int');
$action=GETPOST('action','alpha');
-$mode = GETPOST('mode')?GETPOST('mode'):'createform'; // 'createform', 'filters', 'sortorder'
+$mode = GETPOST('mode')?GETPOST('mode'):'createform'; // 'createform', 'filters', 'sortorder', 'focus'
$limit = GETPOST("limit")?GETPOST("limit","int"):$conf->liste_limit;
$sortfield = GETPOST("sortfield",'alpha');
@@ -210,6 +210,10 @@ if ($mode == 'sortorder')
{
print info_admin($langs->trans("WarningSettingSortOrder")).' ';
}
+if ($mode == 'focus')
+{
+ print info_admin($langs->trans("FeatureNotYetAvailable")).' ';
+}
print ' ';
print ' ';
@@ -217,11 +221,13 @@ print ' ';
print '
';
+// Page
$texthelp=$langs->trans("PageUrlForDefaultValues");
if ($mode == 'createform') $texthelp.=$langs->trans("PageUrlForDefaultValuesCreate", 'societe/card.php');
else $texthelp.=$langs->trans("PageUrlForDefaultValuesList", 'societe/list.php');
$texturl=$form->textwithpicto($langs->trans("Url"), $texthelp);
print_liste_field_titre($texturl,$_SERVER["PHP_SELF"],'page,param','',$param,'',$sortfield,$sortorder);
+// Field
$texthelp=$langs->trans("TheKeyIsTheNameOfHtmlField");
if ($mode != 'sortorder')
{
@@ -233,26 +239,32 @@ else
$textkey=$form->textwithpicto($langs->trans("Field"), $texthelp);
}
print_liste_field_titre($textkey,$_SERVER["PHP_SELF"],'param','',$param,'',$sortfield,$sortorder);
-if ($mode != 'sortorder')
+// Value
+if ($mode != 'focus')
{
- $texthelp=$langs->trans("FollowingConstantsWillBeSubstituted").' ';
- // See list into GETPOST
- $texthelp.='__USERID__ ';
- $texthelp.='__SUPERVISORID__ ';
- $texthelp.='__MYCOUNTRYID__ ';
- $texthelp.='__DAY__ ';
- $texthelp.='__MONTH__ ';
- $texthelp.='__YEAR__ ';
- if (! empty($conf->multicompany->enabled)) $texthelp.='__ENTITYID__ ';
- $textvalue=$form->textwithpicto($langs->trans("Value"), $texthelp, 1, 'help', '', 0, 2, '');
+ if ($mode != 'sortorder')
+ {
+ $texthelp=$langs->trans("FollowingConstantsWillBeSubstituted").' ';
+ // See list into GETPOST
+ $texthelp.='__USERID__ ';
+ $texthelp.='__SUPERVISORID__ ';
+ $texthelp.='__MYCOUNTRYID__ ';
+ $texthelp.='__DAY__ ';
+ $texthelp.='__MONTH__ ';
+ $texthelp.='__YEAR__ ';
+ if (! empty($conf->multicompany->enabled)) $texthelp.='__ENTITYID__ ';
+ $textvalue=$form->textwithpicto($langs->trans("Value"), $texthelp, 1, 'help', '', 0, 2, '');
+ }
+ else
+ {
+ $texthelp='ASC or DESC';
+ $textvalue=$form->textwithpicto($langs->trans("SortOrder"), $texthelp);
+ }
+ print_liste_field_titre($textvalue, $_SERVER["PHP_SELF"], 'value', '', $param, '', $sortfield, $sortorder);
}
-else
-{
- $texthelp='ASC or DESC';
- $textvalue=$form->textwithpicto($langs->trans("SortOrder"), $texthelp);
-}
-print_liste_field_titre($textvalue, $_SERVER["PHP_SELF"], 'value', '', $param, '', $sortfield, $sortorder);
+// Entity
if (! empty($conf->multicompany->enabled) && !$user->entity) print_liste_field_titre($langs->trans("Entity"),$_SERVER["PHP_SELF"],'entity,page','',$param,'',$sortfield,$sortorder);
+// Actions
print ' ';
print " \n";
@@ -261,15 +273,21 @@ print "\n";
print "\n";
print '';
+// Page
print '';
print ' ';
print ' '."\n";
+// Field
print '';
print ' ';
print ' ';
-print '';
-print ' ';
-print ' ';
+// Value
+if ($mode != 'focus')
+{
+ print '';
+ print ' ';
+ print ' ';
+}
// Limit to superadmin
if (! empty($conf->multicompany->enabled) && !$user->entity)
{
@@ -311,28 +329,33 @@ if ($result)
print ' ';
+ // Page
print '';
if ($action != 'edit' || GETPOST('rowid') != $obj->rowid) print $obj->page;
else print ' ';
print ' '."\n";
- // Key
+ // Field
print '';
if ($action != 'edit' || GETPOST('rowid') != $obj->rowid) print $obj->param;
else print ' ';
print ' '."\n";
// Value
- print '';
- /*print ' ';
- print ' ';
- print ' ';
- print ' ';
- */
- if ($action != 'edit' || GETPOST('rowid') != $obj->rowid) print $obj->value;
- else print ' ';
- print ' ';
-
+ if ($mode != 'focus')
+ {
+ print '';
+ /*print ' ';
+ print ' ';
+ print ' ';
+ print ' ';
+ */
+ if ($action != 'edit' || GETPOST('rowid') != $obj->rowid) print $obj->value;
+ else print ' ';
+ print ' ';
+ }
+
+ // Actions
print '';
if ($action != 'edit' || GETPOST('rowid') != $obj->rowid)
{
@@ -349,7 +372,7 @@ if ($result)
print ' ';
}
print ' ';
-
+
print " \n";
print "\n";
$i++;
diff --git a/htdocs/core/lib/admin.lib.php b/htdocs/core/lib/admin.lib.php
index 2a734b5f161..4beb49107d2 100644
--- a/htdocs/core/lib/admin.lib.php
+++ b/htdocs/core/lib/admin.lib.php
@@ -624,6 +624,11 @@ function defaultvalues_prepare_head()
$head[$h][2] = 'sortorder';
$h++;
+ $head[$h][0] = DOL_URL_ROOT."/admin/defaultvalues.php?mode=focus";
+ $head[$h][1] = $langs->trans("DefaultFocus");
+ $head[$h][2] = 'focus';
+ $h++;
+
/*$head[$h][0] = DOL_URL_ROOT."/admin/translation.php?mode=searchkey";
$head[$h][1] = $langs->trans("TranslationKeySearch");
$head[$h][2] = 'searchkey';
diff --git a/htdocs/langs/en_US/admin.lang b/htdocs/langs/en_US/admin.lang
index 4b56ef00ae1..14131bddd2c 100644
--- a/htdocs/langs/en_US/admin.lang
+++ b/htdocs/langs/en_US/admin.lang
@@ -1352,9 +1352,10 @@ CacheByClient=Cache by browser
CompressionOfResources=Compression of HTTP responses
TestNotPossibleWithCurrentBrowsers=Such an automatic detection is not possible with current browsers
DefaultValuesDesc=You can define/force here the default value you want to get when your create a new record, and/or defaut filters or sort order when your list record.
-DefaultCreateForm=Create forms
-DefaultSearchFilters=Search filters
-DefaultSortOrder=Sort orders
+DefaultCreateForm=Default values for new objects
+DefaultSearchFilters=Default search filters
+DefaultSortOrder=Default sort orders
+DefaultFocus=Default focus fields
##### Products #####
ProductSetup=Products module setup
ServiceSetup=Services module setup