From ca33d0a20f2cdeacac0740ad10eea49c707b993a Mon Sep 17 00:00:00 2001 From: Peter Rotich <peter@osticket.com> Date: Mon, 24 Oct 2016 22:17:09 +0000 Subject: [PATCH] Canned Dept relationship Add department relationship to Canned model. --- include/class.canned.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/class.canned.php b/include/class.canned.php index bb126d740..a8847c9ea 100644 --- a/include/class.canned.php +++ b/include/class.canned.php @@ -21,6 +21,10 @@ extends VerySimpleModel { 'table' => CANNED_TABLE, 'pk' => array('canned_id'), 'joins' => array( + 'dept' => array( + 'constraint' => array('dept_id' => 'Dept.id'), + 'null' => true, + ), 'attachments' => array( 'constraint' => array( "'C'" => 'Attachment.type', -- GitLab