diff --git a/build/debian/README.howto b/build/debian/README.howto
index 681aa3e9d60..5c0f9d7d0a4 100644
--- a/build/debian/README.howto
+++ b/build/debian/README.howto
@@ -234,12 +234,13 @@ from origin/upstream and origin/pristine.
If script fails with error Bad certificate, you can set "export PERL_LWP_SSL_VERIFY_HOSTNAME=0" to solve this.
* Edit tgz file to remove
-- ckeditor
-- phpexcel
-- tcpdf
+- htdocs/includes/ckeditor
+- htdocs/includes/jquery/plugins/datatables/extras/TableTools/swf
+- htdocs/includes/phpexcel
+- htdocs/includes/tcpdf
And rename file into
dolibarr-x.y.z+dfsgw.tgz
-(x.y.z = version, w start from 1 and is increased for each new import)
+(x.y.z = version, w start from 1 and is increased for each new git-import-orig already done)
* Staying into git root directory, run
> git-import-orig -vv ../dolibarr-x.y.z+dfsgw.tgz
diff --git a/htdocs/comm/action/fiche.php b/htdocs/comm/action/fiche.php
index 6a11985aa6a..90aa81f8ff5 100644
--- a/htdocs/comm/action/fiche.php
+++ b/htdocs/comm/action/fiche.php
@@ -393,17 +393,17 @@ if ($action == 'mupdate')
$object->fetch($id);
$shour = dol_print_date($object->datep,"%H");
$smin = dol_print_date($object->datep, "%M");
-
+
$newdate=GETPOST('newdate','alpha');
if (empty($newdate) || strpos($newdate,'dayevent_') != 0 )
{
- header("Location: ".$backtopage);
+ header("Location: ".$backtopage);
exit;
}
$datep=dol_mktime($shour, $smin, 0, substr($newdate,13,2), substr($newdate,15,2), substr($newdate,9,4));
if ($datep!=$object->datep)
- {
+ {
if (!empty($object->datef))
{
$object->datef+=$datep-$object->datep;
@@ -414,19 +414,21 @@ if ($action == 'mupdate')
{
setEventMessage($object->error,'errors');
setEventMessage($object->errors,'errors');
- }
+ }
}
if (! empty($backtopage))
{
header("Location: ".$backtopage);
exit;
}
- else
+ else
{
$action='';
}
-
+
}
+
+
/*
* View
*/
diff --git a/htdocs/comm/action/peruser.php b/htdocs/comm/action/peruser.php
index 70194a5e21e..575f9973eac 100644
--- a/htdocs/comm/action/peruser.php
+++ b/htdocs/comm/action/peruser.php
@@ -579,7 +579,6 @@ foreach ($eventarray as $daykey => $notused)
}*/
if ($filtert > 0)
{
- var_dump($filtert);
$tmpuser = new User($db);
$tmpuser->fetch($filtert);
$usernames[] = $tmpuser;
@@ -645,8 +644,36 @@ echo "\n";
print '';
@@ -796,28 +823,30 @@ function show_day_events2($username, $day, $month, $year, $monthshown, $style, &
{
if ($cases1[$h] != '')
{
- $title = (int) $cases1[$h];
+ $title1=count($cases1[$h]).' '.$langs->trans("Events");
+ /*$title = $h;
$title .= 'h';
if ((int) $cases1[$h] != $cases1[$h])
$title .= '30';
else
- $title .= '00';
+ $title .= '00';*/
$string1=' ';
$style1='peruser_busy';
- $url='';
+ $url='';
}
}
if (isset($cases2[$h]))
{
if ($cases2[$h] != '')
{
- $title = (int) $cases2[$h];
+ /*$title = $h;
$title .= 'h';
if ((int) $cases2[$h] != $cases2[$h]) $title .= '30';
- else $title .= '00';
+ else $title .= '00';*/
+ $title2=count($cases1[$h]).' '.$langs->trans("Events");
$string2=' ';
$style2='peruser_busy';
- $url='';
+ $url='';
}
}
@@ -828,19 +857,19 @@ function show_day_events2($username, $day, $month, $year, $monthshown, $style, &
{
$ids=array_keys($cases1[$h]);
$id=$ids[0];
- $title1='zzz';
}
- if (count($cases2[$h]) == 1) // 1 seul evenement
+ if (count($cases2[$h]) == 1) // 1 seul evenement
{
$ids=array_keys($cases2[$h]);
$id=$ids[0];
- $title2='bbb';
}
- print '
';
- print '';
+ $ids1=join(',',array_keys($cases1[$h]));
+ $ids2=join(',',array_keys($cases2[$h]));
//var_dump($cases1[$h]);
+ print '';
+ print '| ';
print $string1;
- print ' | ';
+ print ' | ';
print $string2;
print ' | ';
print ' ';
|