Merge branch '9.0' of git@github.com:Dolibarr/dolibarr.git into develop
Conflicts: htdocs/holiday/card.php
This commit is contained in:
commit
fd0eb47b35
@ -154,7 +154,7 @@ class AccountingAccount extends CommonObject
|
|||||||
* @param int $rowid Id
|
* @param int $rowid Id
|
||||||
* @param string $account_number Account number
|
* @param string $account_number Account number
|
||||||
* @param int|boolean $limittocurrentchart 1 or true=Load record only if it is into current active char of account
|
* @param int|boolean $limittocurrentchart 1 or true=Load record only if it is into current active char of account
|
||||||
* @param string $limittochartaccount 'ABC'=Load record only if it is into chart account with code 'ABC'.
|
* @param string $limittoachartaccount 'ABC'=Load record only if it is into chart account with code 'ABC'.
|
||||||
* @return int <0 if KO, 0 if not found, Id of record if OK and found
|
* @return int <0 if KO, 0 if not found, Id of record if OK and found
|
||||||
*/
|
*/
|
||||||
public function fetch($rowid = null, $account_number = null, $limittocurrentchart = 0, $limittoachartaccount = '')
|
public function fetch($rowid = null, $account_number = null, $limittocurrentchart = 0, $limittoachartaccount = '')
|
||||||
|
|||||||
@ -137,7 +137,7 @@ class ImportCsv extends ModeleImports
|
|||||||
*
|
*
|
||||||
* @param Translate $outputlangs Output language
|
* @param Translate $outputlangs Output language
|
||||||
* @param array $headerlinefields Array of fields name
|
* @param array $headerlinefields Array of fields name
|
||||||
* @return string
|
* @return string$limittoachartaccount
|
||||||
*/
|
*/
|
||||||
public function write_title_example($outputlangs, $headerlinefields)
|
public function write_title_example($outputlangs, $headerlinefields)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1270,7 +1270,7 @@ else
|
|||||||
print '</td>';
|
print '</td>';
|
||||||
print '<td>'.$valideur->getNomUrl(-1);
|
print '<td>'.$valideur->getNomUrl(-1);
|
||||||
$include_users = $object->fetch_users_approver_holiday();
|
$include_users = $object->fetch_users_approver_holiday();
|
||||||
if (is_array($include_users) && in_array($user->id, $include_users) && $object->statut != Holiday::STATUS_DRAFT)
|
if (is_array($include_users) && in_array($user->id, $include_users) && $object->statut == Holiday::STATUS_VALIDATED)
|
||||||
{
|
{
|
||||||
print '<a href="'.$_SERVER["PHP_SELF"].'?id='.$object->id.'&action=editvalidator">'.img_edit($langs->trans("Edit")).'</a>';
|
print '<a href="'.$_SERVER["PHP_SELF"].'?id='.$object->id.'&action=editvalidator">'.img_edit($langs->trans("Edit")).'</a>';
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user