Skip to content

Commit f660276

Browse files
committed
Indicate invitations are disabled
1 parent df548ee commit f660276

3 files changed

Lines changed: 27 additions & 0 deletions

File tree

lhc_web/design/defaulttheme/tpl/lhabstract/filter/subject.tpl.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
<form action="<?php echo erLhcoreClassDesign::baseurl('abstract/list')?>/Subject" method="get">
22
<div class="row">
33

4+
5+
6+
<div class="col-md-1">
7+
<div class="mb-3">
8+
<label class="form-label"><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/lists/search_panel','ID');?></label>
9+
<input type="text" class="form-control form-control-sm" name="object_id" value="<?php echo htmlspecialchars((string)$input_form->object_id)?>" />
10+
</div>
11+
</div>
12+
413
<div class="col-md-3">
514
<div class="mb-3">
615
<label class="form-label"><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/lists/search_panel','Name');?></label>

lhc_web/design/defaulttheme/tpl/lhaudit/debuginvitation.tpl.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
<h5><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('lhaudit/debuginvitation','Simplified output')?></h5>
22

33
<ul>
4+
5+
6+
<?php if (erLhcoreClassModelChatConfig::fetch('pro_active_invite')->current_value != 1) : ?>
7+
<li><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('lhaudit/debuginvitation','Proactive invitations is')?>&nbsp;<span class="badge bg-danger">disabled</span>&nbsp;<a href="<?php echo erLhcoreClassDesign::baseurl('chat/listchatconfig')?>#onlinetracking"><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('lhaudit/debuginvitation','change it.')?></a></li>
8+
<?php endif; ?>
9+
410
<li><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('lhaudit/debuginvitation','Valid invitations found')?> - <?php echo count($debug_invitation['rows']); ?> [<?php echo implode(',',array_keys($debug_invitation['rows']))?>]</li>
511

612
<?php if (isset($debug_invitation['no_messages'])) : ?>

lhc_web/lib/core/lhabstract/searchattr/subject.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,18 @@
2727
)
2828
);
2929

30+
$fieldsSearch['object_id'] = array (
31+
'type' => 'text',
32+
'trans' => 'id',
33+
'required' => false,
34+
'valid_if_filled' => false,
35+
'filter_type' => 'filter',
36+
'filter_table_field' => '`lh_abstract_subject`.`id`',
37+
'validation_definition' => new ezcInputFormDefinitionElement (
38+
ezcInputFormDefinitionElement::OPTIONAL, 'int'
39+
)
40+
);
41+
3042
$fieldsSearch['internal'] = array (
3143
'type' => 'text',
3244
'trans' => 'Internal',

0 commit comments

Comments
 (0)