Skip to content
Snippets Groups Projects
Commit 25ac20df authored by Peter Rotich's avatar Peter Rotich
Browse files

bugs : bug fixes

parent 54161af6
Branches
Tags
No related merge requests found
......@@ -698,7 +698,6 @@ class DynamicFormField extends VerySimpleModel {
static function create($ht=false) {
$inst = parent::create($ht);
$inst->set('created', new SqlFunction('NOW'));
$inst->flags = self::FLAG_ENABLED;
if (isset($ht['configuration']))
$inst->configuration = JsonDataEncoder::encode($ht['configuration']);
return $inst;
......
......@@ -515,7 +515,7 @@ Class ThreadEntry {
}
function getAttachments() {
return $this->attachments->getAll(true, false);
return $this->attachments->getAll(false);
}
function getAttachmentUrls($script='image.php') {
......
......@@ -188,7 +188,7 @@ class Ticket {
return false;
$sql='SELECT ticket.*, thread.id as thread_id, lock_id, dept.name as dept_name '
.' ,count(distinct attach.attach_id) as attachments'
.' ,count(distinct attach.id) as attachments'
.' ,count(distinct task.id) as tasks'
.' FROM '.TICKET_TABLE.' ticket '
.' LEFT JOIN '.DEPT_TABLE.' dept ON (ticket.dept_id=dept.id) '
......
......@@ -97,7 +97,7 @@
type: priority # notrans
name: priority # notrans
label: Priority Level
flags: 0x430A3
flags: 0x430B1
sort: 3
- type: C # notrans
title: Company Information
......
......@@ -145,7 +145,7 @@ if ($results) { ?>
title="<?php echo __('Preview Ticket'); ?>"
href="tickets.php?id=<?php echo $row['ticket_id']; ?>"
data-preview="#tickets/<?php echo $row['ticket_id']; ?>/preview"><?php echo $tid; ?></a></td>
<td align="center" nowrap><?php echo Format::db_datetime($row['effective_date']); ?></td>
<td align="center" nowrap><?php echo Format::datetime($row['effective_date']); ?></td>
<td><?php echo $status; ?></td>
<td><a <?php if ($flag) { ?> class="Icon <?php echo $flag; ?>Ticket" title="<?php echo ucfirst($flag); ?> Ticket" <?php } ?>
href="tickets.php?id=<?php echo $row['ticket_id']; ?>"><?php echo $subject; ?></a>
......
......@@ -309,7 +309,7 @@ $_SESSION[':Q:tickets'] = $tickets;
href="tickets.php?id=<?php echo $T['ticket_id']; ?>"
data-preview="#tickets/<?php echo $T['ticket_id']; ?>/preview"
><?php echo $tid; ?></a></td>
<td align="center" nowrap><?php echo Format::db_datetime($T[$date_col ?: 'lastupdate']); ?></td>
<td align="center" nowrap><?php echo Format::datetime($T[$date_col ?: 'lastupdate']); ?></td>
<td><a <?php if ($flag) { ?> class="Icon <?php echo $flag; ?>Ticket" title="<?php echo ucfirst($flag); ?> Ticket" <?php } ?>
href="tickets.php?id=<?php echo $T['ticket_id']; ?>"><?php echo $subject; ?></a>
<?php
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment