Skip to content

Commit

Permalink
Fix #992: Digibug pops up a blank page and doesn't allow printing
Browse files Browse the repository at this point in the history
form::hidden() changed in K24 breaking this.  Also fixed the spelling
of "$order_params"
  • Loading branch information
bharat committed Jan 31, 2010
1 parent a161436 commit 10e208e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/digibug/controllers/digibug.php
Expand Up @@ -36,7 +36,7 @@ public function print_photo($id) {
}

$v = new View("digibug_form.html");
$v->order_parms = array(
$v->order_params = array(
"digibug_api_version" => "100",
"company_id" => module::get_var("digibug", "company_id"),
"event_id" => module::get_var("digibug", "event_id"),
Expand Down
6 changes: 4 additions & 2 deletions modules/digibug/views/digibug_form.html.php
Expand Up @@ -2,10 +2,12 @@
<html>
<body>
<?= form::open("http://www.digibug.com/dapi/order.php") ?>
<?= form::hidden($order_parms) ?>
<? foreach ($order_params as $key => $value): ?>
<?= form::hidden($key, $value) ?>
<? endforeach ?>
</form>
<script type="text/javascript">
document.forms[0].submit();
document.forms[0].submit();
</script>
</body>
</html>

0 comments on commit 10e208e

Please sign in to comment.