In the loop for writing rows, it uses foreach ($rows as $count => $row)

$count isn't a counter, it's the row index. We should change it to $row_index for clarity.

Comments

xjm’s picture

Status: Active » Needs review
StatusFileSize
new985 bytes

My very first drupal patch using git! Yay!

dawehner’s picture

Status: Needs review » Needs work

The patch doesn't apply to 6.x-3.x.

Could you add a patch for the other version too? This would be cool.

barbi’s picture

Newbie here. Can you help understand the issue here?
Should I clone "6.x-2.x", make the changes again and resubmit the patch?

dawehner’s picture

Please download the 6.x-3.x branch and try to make the same patch for it as well.

barbi’s picture

Version: 6.x-2.x-dev » 6.x-3.x-dev
Assigned: Unassigned » barbi
Status: Needs work » Needs review
StatusFileSize
new912 bytes

Attaching patch for [branch "6.x-3.x"]

dawehner’s picture

Status: Needs review » Fixed

This definitive makes sense! Thanks

Committed to 6.x-3.x and 7.x-3.x

Status: Fixed » Closed (fixed)
Issue tags: -Novice

Automatically closed -- issue fixed for 2 weeks with no activity.