m14t/sots — Issue #110: Icon relations not fully checked in.
Author: m14t
Created: 2011-11-04 19:59:40+00:00
State: open
Labels: Bug, Code todo, Critical

There's code in the `lib/query/RewardQuery.class.php` for this stuff, but there's no relation for it in the schema.yml. You can see the error in the `getRewardsUncollectedData()` function in `apps/frontend/modules/dashboard/actions/components.class.php`.

http://sots.ua5host.com/frontend_dev.php/u/m14t/rewards/uncollected

Index: apps/frontend/modules/dashboard/actions/components.class.php
===================================================================
--- /var/folders/vg/p4p7v4q93msbk7ygq8hbwvpm0000gn/T/tempfile.3.tmp	2011-11-04 12:52:04.000000000 -0700
+++ /var/folders/vg/p4p7v4q93msbk7ygq8hbwvpm0000gn/T/tempfile.4.tmp	2011-11-04 12:52:06.000000000 -0700
@@ -38,18 +38,21 @@
$this->patches = $reward_table->createQuery('r')
->notCollectedByUser($user)
->isPatch()
- ->includeIcons()
+//-- FIXME: Implement Icon Relations
+// ->includeIcons()
->execute();

$this->prizes = $reward_table->createQuery('r')
->notCollectedByUser($user)
->isPrize()
- ->includeIcons()
+//-- FIXME: Implement Icon Relations
+// ->includeIcons()
->execute();

$this->basecamps = $level_table->createQuery('l')
->notAttainedByUser($user)
- ->includeIcons()
+//-- FIXME: Implement Icon Relations
+// ->includeIcons()
->execute();
}

Index: apps/frontend/modules/dashboard/templates/_rewardList.php
===================================================================
--- /var/folders/vg/p4p7v4q93msbk7ygq8hbwvpm0000gn/T/tempfile.3.tmp	2011-11-04 12:52:08.000000000 -0700
+++ /var/folders/vg/p4p7v4q93msbk7ygq8hbwvpm0000gn/T/tempfile.4.tmp	2011-11-04 12:52:10.000000000 -0700
@@ -3,7 +3,7 @@

- getIcon()): ?>
+ getIcon()): ?>

@@ -16,7 +16,7 @@

- getIcon()): ?>
+ getIcon()): ?>

@@ -29,7 +29,7 @@

- getIcon()): ?>
+ getIcon()): ?>