This is kind of an over-arching issue to deal with a bunch of problems on the product report page. If you can deal with one thing in its own patch, post it up to it's own issue, and we'll cross it off the list here.

CommentFileSizeAuthor
#6 uc_reports-numbering.patch490 bytesGarrett Albright

Comments

cha0s’s picture

Assigned: Unassigned » cha0s

sad panda will do this again and post up a patch

rszrama’s picture

Quick tip - don't try to take care of it all in one go. Let's actually make issues for individual changes and address as little as possible for the current branch. More issues, more precision, and planning for the future.

And please send panda my condolences. : (

cha0s’s picture

Status: Active » Needs review

I have created a branch for this at http://66.93.231.252/branch/ubercart/2.x/uc_reports_refactor which contains the changes recommended here as commits. I also added a cleanup commit as the last revision to remove a couple instances of dead code.

Please check this ou with a visualization tool, as it will save a lot of time creating patches, since as you can see, the changes overlap. I could code all these at once, but I'd have to wait for each patch to be approved before I could create the next.

Island Usurper’s picture

Status: Needs review » Fixed

Except for the bug I found in the version of MySQL that I was using (which kept the tablesort from working for me), I say the product report looks a lot better.

Committed.

Status: Fixed » Closed (fixed)

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

Garrett Albright’s picture

Version: 6.x-2.x-dev » 6.x-2.0-beta5
Status: Closed (fixed) » Needs review
StatusFileSize
new490 bytes

If I may re-open this issue…

uc_reports.admin.inc line 245,

      $row_cell++;

is inside an if clause:

    if (module_exists('uc_attribute')) {

and the end result is that the cells for that column are just 1, 1, 1, 1, etc if the Attributes module isn't enabled. Patch attached.

Though I wonder about the usefulness of just putting an increasing number in this column. Wouldn't something like the product SKU be more useful?

Island Usurper’s picture

Status: Needs review » Fixed

A bit late, but I got around to committing it. Thanks, Garrett.

Status: Fixed » Closed (fixed)
Issue tags: -code cleanup

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