Merge branch 'hotfix/5.6.3'
This commit is contained in:
@@ -1043,9 +1043,9 @@ class Activities extends \Espo\Core\Services\Base
|
||||
'createdAt'
|
||||
];
|
||||
|
||||
$wherePart = array(
|
||||
$wherePart = [
|
||||
'assignedUserId' => $userId,
|
||||
);
|
||||
];
|
||||
|
||||
if ($seed->hasRelation('users')) {
|
||||
$wherePart['usersMiddle.userId'] = $userId;
|
||||
@@ -1055,35 +1055,39 @@ class Activities extends \Espo\Core\Services\Base
|
||||
$wherePart['assignedUsersMiddle.userId'] = $userId;
|
||||
}
|
||||
|
||||
$selectParams = array(
|
||||
$selectParams = [
|
||||
'select' => $select,
|
||||
'leftJoins' => [],
|
||||
'whereClause' => array(
|
||||
'whereClause' => [
|
||||
'OR' => $wherePart,
|
||||
array(
|
||||
'OR' => array(
|
||||
array(
|
||||
[
|
||||
'OR' => [
|
||||
[
|
||||
'dateEnd' => null,
|
||||
'dateStart>=' => $from,
|
||||
'dateStart<' => $to
|
||||
),
|
||||
array(
|
||||
],
|
||||
[
|
||||
'dateStart>=' => $from,
|
||||
'dateStart<' => $to
|
||||
],
|
||||
[
|
||||
'dateEnd>=' => $from,
|
||||
'dateEnd<' => $to
|
||||
),
|
||||
array(
|
||||
],
|
||||
[
|
||||
'dateStart<=' => $from,
|
||||
'dateEnd>=' => $to
|
||||
),
|
||||
array(
|
||||
],
|
||||
[
|
||||
'dateEndDate!=' => null,
|
||||
'dateEndDate>=' => $from,
|
||||
'dateEndDate<' => $to
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
]
|
||||
]
|
||||
]
|
||||
]
|
||||
];
|
||||
|
||||
if ($seed->hasRelation('users')) {
|
||||
$selectParams['leftJoins'][] = 'users';
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
<div class="row button-container">
|
||||
<div class="col-sm-4 col-xs-12">
|
||||
<div class="btn-group">
|
||||
<button class="btn btn-text" data-action="today">{{translate 'Today' scope='Calendar'}}</button>
|
||||
<button class="btn btn-text btn-icon" title="{{translate 'Refresh'}}" data-action="refresh"><span class="fas fa-sync-alt"></span></button>
|
||||
<button class="btn btn-text" data-action="today">{{translate 'Today' scope='Calendar'}}</button>
|
||||
</div>{{#if calendarTypeSelectEnabled}}<div class="btn-group calendar-type-button-group">
|
||||
<div class="btn-group " role="group">
|
||||
<button type="button" class="btn btn-text dropdown-toggle" data-toggle="dropdown"><span class="calendar-type-label">{{calendarTypeLabel}}</span> <span class="caret"></span></button>
|
||||
@@ -24,7 +24,6 @@
|
||||
{{/if}}
|
||||
</div>
|
||||
|
||||
|
||||
<div class="date-title col-sm-4 hidden-xs"><h4><span style="cursor: pointer;" data-action="refresh" title="{{translate 'Refresh'}}"></span></h4></div>
|
||||
|
||||
<div class="col-sm-4 col-xs-12">
|
||||
|
||||
@@ -40,6 +40,7 @@ define('crm:views/meeting/modals/detail', 'views/modals/detail', function (Dep)
|
||||
html: buttonData.html,
|
||||
hidden: this.hasAcceptanceStatusButton(),
|
||||
style: buttonData.style,
|
||||
pullLeft: true,
|
||||
}, 'cancel');
|
||||
|
||||
if (
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
display: none;
|
||||
}
|
||||
#layout header {
|
||||
font-weight: bold;
|
||||
font-weight: 600;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
#layout ul.panels > li label {
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
}
|
||||
|
||||
#layout header {
|
||||
font-weight: bold;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
#layout ul > li .left {
|
||||
|
||||
@@ -8,9 +8,9 @@
|
||||
<div class="col-sm-5 col-xs-7">
|
||||
<div class="pull-right btn-group">
|
||||
{{#each filterList}}
|
||||
<button class="btn btn-default{{#ifEqual this ../filter}} active{{/ifEqual}}" data-action="selectFilter" data-name="{{./this}}">{{translate this scope='Note' category='filters'}}</button>
|
||||
<button class="btn btn-text{{#ifEqual this ../filter}} active{{/ifEqual}}" data-action="selectFilter" data-name="{{./this}}">{{translate this scope='Note' category='filters'}}</button>
|
||||
{{/each}}
|
||||
<button class="btn btn-default btn-icon btn-icon-wide" data-action="refresh" title="{{translate 'checkForNewNotes' category='messages'}}"><span class="fas fa-sync-alt"></span></button>
|
||||
<button class="btn btn-text btn-icon btn-icon-wide" data-action="refresh" title="{{translate 'checkForNewNotes' category='messages'}}"><span class="fas fa-sync-alt"></span></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -56,6 +56,20 @@ define('views/main', 'view', function (Dep) {
|
||||
|
||||
['buttons', 'actions', 'dropdown'].forEach(function (type) {
|
||||
this.menu[type] = this.menu[type] || [];
|
||||
|
||||
var itemList = this.menu[type];
|
||||
itemList.forEach(function (item) {
|
||||
var viewObject = this;
|
||||
if (item.initFunction && item.data.handler) {
|
||||
this.wait(new Promise(function (resolve) {
|
||||
require(item.data.handler, function (Handler) {
|
||||
var handler = new Handler(viewObject);
|
||||
handler[item.initFunction].call(handler);
|
||||
resolve();
|
||||
});
|
||||
}));
|
||||
}
|
||||
}, this);
|
||||
}, this);
|
||||
|
||||
this.updateLastUrl();
|
||||
|
||||
@@ -3026,9 +3026,14 @@ a.link-gray {
|
||||
}
|
||||
|
||||
.btn-text {
|
||||
color: @gray-soft;
|
||||
color: @gray-dark;
|
||||
border-radius: 0;
|
||||
|
||||
.far,
|
||||
.fas {
|
||||
color: @gray-soft;
|
||||
}
|
||||
|
||||
&,
|
||||
&:active,
|
||||
&.active,
|
||||
@@ -3048,6 +3053,10 @@ a.link-gray {
|
||||
color: @gray-dark;
|
||||
text-decoration: none;
|
||||
background-color: transparent;
|
||||
.far,
|
||||
.fas {
|
||||
color: @gray-dark;
|
||||
}
|
||||
}
|
||||
&.disabled,
|
||||
&[disabled],
|
||||
@@ -3058,12 +3067,16 @@ a.link-gray {
|
||||
text-decoration: none;
|
||||
}
|
||||
color: @gray-light;
|
||||
.far,
|
||||
.fas {
|
||||
color: @gray-light;
|
||||
}
|
||||
}
|
||||
&.active {
|
||||
border-bottom: 1px solid @gray-light;
|
||||
}
|
||||
|
||||
font-weight: 600;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.btn-group.open .dropdown-toggle {
|
||||
|
||||
Reference in New Issue
Block a user