From: Alex Monk Date: Mon, 17 Dec 2012 00:59:28 +0000 (+0000) Subject: (bug 41330) Default to the current year in the history page filter form X-Git-Tag: 1.31.0-rc.0~20878^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/bilan.php?a=commitdiff_plain;h=1a6de1b24bcc3e5743553533b38ccc324a0f1d53;p=lhc%2Fweb%2Fwiklou.git (bug 41330) Default to the current year in the history page filter form Change-Id: Ia510f0a24248f95c839ab88062cee1c0c0b9b6c1 --- diff --git a/includes/actions/HistoryAction.php b/includes/actions/HistoryAction.php index 61de3b6328..999a14b4db 100644 --- a/includes/actions/HistoryAction.php +++ b/includes/actions/HistoryAction.php @@ -176,7 +176,7 @@ class HistoryAction extends FormlessAction { ) . Html::hidden( 'title', $this->getTitle()->getPrefixedDBKey() ) . "\n" . Html::hidden( 'action', 'history' ) . "\n" . - Xml::dateMenu( $year, $month ) . ' ' . + Xml::dateMenu( ( $year == null ? date( "Y" ) : $year ), $month ) . ' ' . ( $tagSelector ? ( implode( ' ', $tagSelector ) . ' ' ) : '' ) . $checkDeleted . Xml::submitButton( $this->msg( 'allpagessubmit' )->text() ) . "\n" .