diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-06-30 20:17:48 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-06-30 20:17:48 -0700 |
commit | b541935d6f2dd0a135b923683a41c4488b896f55 (patch) | |
tree | 12762b73f4db89666597547d206fcb772e0e4a24 | |
parent | 0b34ec4e8b1f97db0dc6807bdb3a5ece8e1b83e4 (diff) |
Fix issues with Digibug printing where the preview ws not showing up.
-rw-r--r-- | modules/digibug/controllers/digibug.php | 2 | ||||
-rw-r--r-- | modules/digibug/models/digibug_proxy.php | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/modules/digibug/controllers/digibug.php b/modules/digibug/controllers/digibug.php index c1852009..84e430e2 100644 --- a/modules/digibug/controllers/digibug.php +++ b/modules/digibug/controllers/digibug.php @@ -55,7 +55,7 @@ class Digibug_Controller extends Controller { } public function print_proxy($type, $id) { - $proxy = ORM::factory("digibug_proxy", array("uuid", $id)); + $proxy = ORM::factory("digibug_proxy", array("uuid" => $id)); if (!$proxy->loaded || !$proxy->item->loaded) { Kohana::show_404(); } diff --git a/modules/digibug/models/digibug_proxy.php b/modules/digibug/models/digibug_proxy.php index 036af9c7..c76afdae 100644 --- a/modules/digibug/models/digibug_proxy.php +++ b/modules/digibug/models/digibug_proxy.php @@ -18,4 +18,5 @@ * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ class Digibug_Proxy_Model extends ORM { + protected $has_one = array("item"); } |