diff --git a/application/controllers/Labels.php b/application/controllers/Labels.php index 2c1a5fae..09faf392 100644 --- a/application/controllers/Labels.php +++ b/application/controllers/Labels.php @@ -158,7 +158,7 @@ class Labels extends CI_Controller { try { if ($label) { $ptype=$this->labels_model->getPaperType($label->paper_type); // fetch papersize out of paper-table - var_dump($ptype); + // var_dump($ptype); $pdf = new PDF_Label(array( 'paper-size' => 'custom', // $label->paper_type, // The only Type left is "custom" because A4 and so on are also defined at paper_types 'metric' => $label->metric, diff --git a/application/models/Labels_model.php b/application/models/Labels_model.php index 18835692..27b8c188 100644 --- a/application/models/Labels_model.php +++ b/application/models/Labels_model.php @@ -119,7 +119,7 @@ class Labels_model extends CI_Model { function getPaperType($ptype) { $this->db->where('user_id', $this->session->userdata('user_id')); - $this->db->where('id',$ptype); + $this->db->where('paper_name',$ptype); $query = $this->db->get('paper_types'); return $query->row(); diff --git a/src/Label/PDF_Label.php b/src/Label/PDF_Label.php index e4083056..a65be9b6 100644 --- a/src/Label/PDF_Label.php +++ b/src/Label/PDF_Label.php @@ -72,7 +72,7 @@ class PDF_Label extends tfpdf { function __construct($format, $unit='mm', $posX=1, $posY=1, $pgX=0,$pgY=0) { if (is_array($format)) { // Custom format - var_dump("X".$pgX); + // var_dump("X".$pgX); $Tformat = $format; } else { // Built-in format