diff --git a/build/debian/apache/dolibarr.conf b/build/debian/apache/dolibarr.conf
index 95eaae21190..bdbb6e1b4c3 100644
--- a/build/debian/apache/dolibarr.conf
+++ b/build/debian/apache/dolibarr.conf
@@ -15,7 +15,7 @@ Alias /dolibarr /usr/share/dolibarr/htdocs
# Require all granted
#
#
-# Order allow, deny
+# Order allow,deny
# Allow from all
#
#
@@ -27,7 +27,7 @@ Alias /dolibarr /usr/share/dolibarr/htdocs
Require all granted
- Order allow, deny
+ Order allow,deny
Allow from all
diff --git a/build/makepack-dolibarr.pl b/build/makepack-dolibarr.pl
index 2b31d1f26a6..99ec7b3543a 100755
--- a/build/makepack-dolibarr.pl
+++ b/build/makepack-dolibarr.pl
@@ -467,6 +467,7 @@ if ($nboftargetok) {
# Removed known external modules to avoid any error when packaging from env where external modules are tested
$ret=`rm -fr $BUILDROOT/$PROJECT/htdocs/custom/*`; # For custom we want to keep dir
+ $ret=`rm -fr $BUILDROOT/$PROJECT/htdocs/allscreens*`;
$ret=`rm -fr $BUILDROOT/$PROJECT/htdocs/ancotec*`;
$ret=`rm -fr $BUILDROOT/$PROJECT/htdocs/cabinetmed*`;
$ret=`rm -fr $BUILDROOT/$PROJECT/htdocs/calling*`;
@@ -481,8 +482,8 @@ if ($nboftargetok) {
$ret=`rm -fr $BUILDROOT/$PROJECT/htdocs/pos*`;
$ret=`rm -fr $BUILDROOT/$PROJECT/htdocs/teclib*`;
$ret=`rm -fr $BUILDROOT/$PROJECT/htdocs/timesheet*`;
- # Removed other test files
$ret=`rm -fr $BUILDROOT/$PROJECT/htdocs/themes/oblyon*`;
+ # Removed other test files
$ret=`rm -fr $BUILDROOT/$PROJECT/htdocs/themes/eldy/*.new`;
$ret=`rm -fr $BUILDROOT/$PROJECT/htdocs/public/api/explorer`; # This is a dev tool
$ret=`rm -fr $BUILDROOT/$PROJECT/htdocs/public/test`;
diff --git a/build/makepack-howto.txt b/build/makepack-howto.txt
index 173c01c6f8b..813db9bb4b8 100644
--- a/build/makepack-howto.txt
+++ b/build/makepack-howto.txt
@@ -10,13 +10,12 @@ beta version of Dolibarr, step by step.
- Check all files are commited.
- Update version/info in ChangeLog. To generate a changelog, you can do "git log `git merge-base 3.7.0 origin/develop`.. --no-merges --pretty=short --oneline | sed -e "s/^[0-9a-z]* //" | grep -e '^FIX\|NEW' | sort -u | sed 's/FIXED:/FIX:/g' | sed 's/FIXED :/FIX:/g' | sed 's/FIX :/FIX:/g' | sed 's/FIX /FIX: /g' | sed 's/NEW :/NEW:/g' | sed 's/NEW /NEW: /g' > /tmp/aaa"
- Update version number with x.y.z-w in htdocs/filefunc.inc.php
-- Update version number with x.y.z-w in build/debian/changelog
- Commit all changes.
-- Add a Tag (x.y.z-beta) and push it: git push --tags
-- Create a branch (x.y).
- Run makepack-dolibarr.pl to generate all packages.
+- Create a branch (x.y), if version seems stable enough.
+
- Move build files into www.dolibarr.org web site
(/home/dolibarr/wwwroot/files/lastbuild).
@@ -31,7 +30,6 @@ complete release of Dolibarr, step by step.
- Check all files are commited.
- Update version/info in ChangeLog. To generate a changelog, you can do "git log `git merge-base 3.7.0 origin/develop`.. --no-merges --pretty=short --oneline | sed -e "s/^[0-9a-z]* //" | grep -e '^FIX\|NEW' | sort -u | sed 's/FIXED:/FIX:/g' | sed 's/FIXED :/FIX:/g' | sed 's/FIX :/FIX:/g' | sed 's/FIX /FIX: /g' | sed 's/NEW :/NEW:/g' | sed 's/NEW /NEW: /g' > /tmp/aaa"
- Update version number with x.y.z in htdocs/filefunc.inc.php
-- Update version number with x.y.z in build/debian/changelog
- Commit all changes.
- Run makepack-dolibarr.pl to generate all packages.
diff --git a/htdocs/.gitignore b/htdocs/.gitignore
index 0b4d7b82790..949cb7c77f5 100644
--- a/htdocs/.gitignore
+++ b/htdocs/.gitignore
@@ -13,3 +13,5 @@
/ultimatepdf*
/lead
/dolimed*
+/allscreens*
+/ecommerce/
diff --git a/htdocs/categories/categorie.php b/htdocs/categories/categorie.php
index 083edbf6b7e..43803d045bb 100644
--- a/htdocs/categories/categorie.php
+++ b/htdocs/categories/categorie.php
@@ -419,7 +419,7 @@ else if ($id || $ref)
// Ref
print '
';
- if (! empty($conf->propal->enabled) && $user->rights->propal->creer)
+ if (! empty($conf->propal->enabled) && $user->rights->propal->creer && $object->status==1)
{
$langs->load("propal");
print '
';
}
- if (! empty($conf->commande->enabled) && $user->rights->commande->creer)
+ if (! empty($conf->commande->enabled) && $user->rights->commande->creer && $object->status==1)
{
$langs->load("orders");
print '
';
}
- if ($user->rights->contrat->creer)
+ if ($user->rights->contrat->creer && $object->status==1)
{
$langs->load("contracts");
print '
';
}
- if (! empty($conf->ficheinter->enabled) && $user->rights->ficheinter->creer)
+ if (! empty($conf->ficheinter->enabled) && $user->rights->ficheinter->creer && $object->status==1)
{
$langs->load("fichinter");
print '
';
@@ -992,7 +992,7 @@ if ($id > 0)
// Add invoice
if ($user->societe_id == 0)
{
- if (! empty($conf->deplacement->enabled))
+ if (! empty($conf->deplacement->enabled) && $object->status==1)
{
$langs->load("trips");
print '
';
@@ -1000,7 +1000,7 @@ if ($id > 0)
if (! empty($conf->facture->enabled))
{
- if ($user->rights->facture->creer)
+ if ($user->rights->facture->creer && $object->status==1)
{
$langs->load("bills");
$langs->load("orders");
diff --git a/htdocs/comm/propal.php b/htdocs/comm/propal.php
index 8a17ad00b53..31603acc5a1 100644
--- a/htdocs/comm/propal.php
+++ b/htdocs/comm/propal.php
@@ -1323,7 +1323,7 @@ if ($action == 'create')
print '';
} else {
print '
';
- print $form->select_company('', 'socid', 's.client = 1 OR s.client = 2 OR s.client = 3', 1);
+ print $form->select_company('', 'socid', '(s.client = 1 OR s.client = 2 OR s.client = 3) AND status=1', 1);
print ' | ';
}
print '' . "\n";
@@ -2164,18 +2164,20 @@ if ($action == 'create')
if ($action != 'statut' && $action != 'editline')
{
// Validate
- if ($object->statut == Propal::STATUS_DRAFT && $object->total_ttc >= 0 && count($object->lines) > 0 &&
- ((empty($conf->global->MAIN_USE_ADVANCED_PERMS) && ! empty($user->rights->propal->creer))
+ if ($object->statut == Propal::STATUS_DRAFT && $object->total_ttc >= 0 && count($object->lines) > 0)
+ {
+ if ((empty($conf->global->MAIN_USE_ADVANCED_PERMS) && ! empty($user->rights->propal->creer))
|| (! empty($conf->global->MAIN_USE_ADVANCED_PERMS) && ! empty($user->rights->propal->propal_advance->validate)))
- ) {
- if (count($object->lines) > 0)
+ {
print '
';
- // else print '
'.$langs->trans('Validate').'';
+ }
+ else
+ print '
';
}
// Create event
if ($conf->agenda->enabled && ! empty($conf->global->MAIN_ADD_EVENT_ON_ELEMENT_CARD)) // Add hidden condition because this is not a "workflow" action so should appears somewhere else on page.
{
- print '
' . $langs->trans("AddAction") . '';
+ print '
';
}
// Edit
if ($object->statut == Propal::STATUS_VALIDATED && $user->rights->propal->creer) {
diff --git a/htdocs/core/lib/files.lib.php b/htdocs/core/lib/files.lib.php
index 2f197d8b645..e49661be26f 100644
--- a/htdocs/core/lib/files.lib.php
+++ b/htdocs/core/lib/files.lib.php
@@ -627,7 +627,7 @@ function dol_move($srcfile, $destfile, $newmask=0, $overwriteifexists=1)
else dol_syslog("files.lib.php::dol_move failed", LOG_WARNING);
}
if (empty($newmask) && ! empty($conf->global->MAIN_UMASK)) $newmask=$conf->global->MAIN_UMASK;
- @chmod($newpathofsrcfile, octdec($newmask));
+ @chmod($newpathofdestfile, octdec($newmask));
}
return $result;
diff --git a/htdocs/ecm/tpl/enablefiletreeajax.tpl.php b/htdocs/ecm/tpl/enablefiletreeajax.tpl.php
index b348cb03c72..7b2145d0f93 100644
--- a/htdocs/ecm/tpl/enablefiletreeajax.tpl.php
+++ b/htdocs/ecm/tpl/enablefiletreeajax.tpl.php
@@ -51,7 +51,7 @@ $(document).ready(function() {
$('#refreshbutton').click( function() {
$.pleaseBePatient("trans('PleaseBePatient'); ?>");
- $.getJSON( "", {
+ $.get( "", {
action: "build",
element: "ecm"
},
diff --git a/htdocs/filefunc.inc.php b/htdocs/filefunc.inc.php
index 1898b50e693..ea369d8aff3 100644
--- a/htdocs/filefunc.inc.php
+++ b/htdocs/filefunc.inc.php
@@ -30,7 +30,7 @@
* \brief File that include conf.php file and commons lib like functions.lib.php
*/
-if (! defined('DOL_VERSION')) define('DOL_VERSION','3.8.0');
+if (! defined('DOL_VERSION')) define('DOL_VERSION','3.8.1');
if (! defined('EURO')) define('EURO',chr(128));
diff --git a/htdocs/fourn/facture/paiement.php b/htdocs/fourn/facture/paiement.php
index 20cf8f250bd..758885cef58 100644
--- a/htdocs/fourn/facture/paiement.php
+++ b/htdocs/fourn/facture/paiement.php
@@ -5,11 +5,8 @@
* Copyright (C) 2004 Christophe Combelles
* Copyright (C) 2005 Marc Barilley / Ocebo
* Copyright (C) 2005-2012 Regis Houssin
-<<<<<<< HEAD
* Copyright (C) 2014 Teddy Andreotti <125155@supinfo.com>
-=======
* Copyright (C) 2015 Marcos GarcĂa
->>>>>>> refs/remotes/origin/3.6
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -46,6 +43,7 @@ $confirm = GETPOST('confirm');
$facid=GETPOST('facid','int');
$socid=GETPOST('socid','int');
+$accountid = GETPOST('accountid');
$sortfield = GETPOST("sortfield",'alpha');
$sortorder = GETPOST("sortorder",'alpha');
@@ -200,7 +198,7 @@ if (empty($reshook))
if (! $error)
{
- $result=$paiement->addPaymentToBank($user,'payment_supplier','(SupplierInvoicePayment)',$_POST['accountid'],'','');
+ $result=$paiement->addPaymentToBank($user,'payment_supplier','(SupplierInvoicePayment)',$accountid,'','');
if ($result < 0)
{
setEventMessage($paiement->error, 'errors');
@@ -304,7 +302,7 @@ if ($action == 'create' || $action == 'confirm_paiement' || $action == 'add_paie
if (! empty($conf->banque->enabled))
{
print '| '.$langs->trans('Account').' | ';
- $form->select_comptes(empty($_POST['accountid'])?'':$_POST['accountid'],'accountid',0,'',2);
+ $form->select_comptes(empty($accountid)?'':$accountid,'accountid',0,'',2);
print ' |
';
}
else
diff --git a/htdocs/theme/.gitignore b/htdocs/theme/.gitignore
index 59c154b7d5f..725155947d1 100644
--- a/htdocs/theme/.gitignore
+++ b/htdocs/theme/.gitignore
@@ -1,3 +1,4 @@
/bootstrap
/oblyon
/autre
+/allscreens