Fix: [ bug #1360 ] note indicator for member tab.
This commit is contained in:
parent
3abede630b
commit
fe43d10c79
@ -19,6 +19,7 @@ Fix: Navigation on notes for shipments was not working.
|
|||||||
Fix: [ bug #1353 ] Email notifications, wrong URL.
|
Fix: [ bug #1353 ] Email notifications, wrong URL.
|
||||||
Fix: [ bug #1362 ] Note is not saved.
|
Fix: [ bug #1362 ] Note is not saved.
|
||||||
Fix: tr/td balance.
|
Fix: tr/td balance.
|
||||||
|
Fix: [ bug #1360 ] note indicator for member tab.
|
||||||
|
|
||||||
***** ChangeLog for 3.5.2 compared to 3.5.1 *****
|
***** ChangeLog for 3.5.2 compared to 3.5.1 *****
|
||||||
Fix: Can't add user for a task.
|
Fix: Can't add user for a task.
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2004-2007 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2004-2014 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -19,7 +19,7 @@
|
|||||||
/**
|
/**
|
||||||
* \file htdocs/adherents/note.php
|
* \file htdocs/adherents/note.php
|
||||||
* \ingroup member
|
* \ingroup member
|
||||||
* \brief Fiche de notes sur un adherent
|
* \brief Tabe for note of a member
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require '../main.inc.php';
|
require '../main.inc.php';
|
||||||
|
|||||||
@ -81,9 +81,14 @@ function member_prepare_head($object)
|
|||||||
// $this->tabs = array('entity:-tabname:Title:@mymodule:/mymodule/mypage.php?id=__ID__'); to remove a tab
|
// $this->tabs = array('entity:-tabname:Title:@mymodule:/mymodule/mypage.php?id=__ID__'); to remove a tab
|
||||||
complete_head_from_modules($conf,$langs,$object,$head,$h,'member');
|
complete_head_from_modules($conf,$langs,$object,$head,$h,'member');
|
||||||
|
|
||||||
|
$nbNote = 0;
|
||||||
|
if(!empty($object->note)) $nbNote++;
|
||||||
|
if(!empty($object->note_private)) $nbNote++;
|
||||||
|
if(!empty($object->note_public)) $nbNote++;
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/adherents/note.php?id='.$object->id;
|
$head[$h][0] = DOL_URL_ROOT.'/adherents/note.php?id='.$object->id;
|
||||||
$head[$h][1] = $langs->trans("Note");
|
$head[$h][1] = $langs->trans("Note");
|
||||||
$head[$h][2] = 'note';
|
$head[$h][2] = 'note';
|
||||||
|
if($nbNote > 0) $head[$h][1].= ' ('.$nbNote.')';
|
||||||
$h++;
|
$h++;
|
||||||
|
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/adherents/document.php?id='.$object->id;
|
$head[$h][0] = DOL_URL_ROOT.'/adherents/document.php?id='.$object->id;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user