Skip to content
This repository has been archived by the owner on Mar 29, 2020. It is now read-only.

Commit

Permalink
Do not modify news array while looping (Fixes #6)
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrunet committed Jan 21, 2015
1 parent 3985cf2 commit 2a6bce4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
1 change: 0 additions & 1 deletion Classes/ViewHelpers/CalendarViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ public function render($newsList, $month=NULL, $year=NULL, $firstDayOfWeek=0) {
foreach ($newsList as $key=>$news) {
if ($news->getDatetime()->format('Y-m-d') == date('Y-m-d', $dts)) {
$day['news'][] = $news;
unset($newsList[$key]);
}
}
$fd++;
Expand Down
4 changes: 4 additions & 0 deletions Documentation/ChangeLog/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ ChangeLog
1.2.0:
-

1.1.1: 2015-01-21
- Fix bug which prevent displaying two events on the same day (thanks to Carsten Hager) [`issue 6`_]

1.1.0: 2015-01-16
- Option to specify if the first day of the week is Sunday or Monday [`issue 1`_]
- Options to display more than one months [`issue 2`_]
Expand All @@ -29,6 +32,7 @@ ChangeLog
.. _issue 1: https://github.com/cbrunet/typo3-cb_newscal/issues/1
.. _issue 2: https://github.com/cbrunet/typo3-cb_newscal/issues/2
.. _issue 3: https://github.com/cbrunet/typo3-cb_newscal/issues/3
.. _issue 6: https://github.com/cbrunet/typo3-cb_newscal/issues/6



Expand Down
4 changes: 2 additions & 2 deletions Documentation/Settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
conf.py:
copyright: 2015
project: Calendar for news
version: 1.2.0
release: 1.2.0
version: 1.1.1
release: 1.1.1
intersphinx_mapping:
t3tsref:
- http://docs.typo3.org/typo3cms/TyposcriptReference/
Expand Down
2 changes: 1 addition & 1 deletion ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
'uploadfolder' => '0',
'createDirs' => '',
'clearCacheOnLoad' => 0,
'version' => '1.2.0',
'version' => '1.1.1',
'constraints' => array(
'depends' => array(
'typo3' => '6.2.0-6.2.99',
Expand Down

0 comments on commit 2a6bce4

Please sign in to comment.