is not read

This commit is contained in:
yuri
2016-01-15 13:27:49 +02:00
parent f148bb0089
commit 6dc13f229e
4 changed files with 23 additions and 1 deletions
@@ -24,6 +24,7 @@
"replied": "Replied",
"replies": "Replies",
"isRead": "Is Read",
"isNotRead": "Is Not Read",
"isImportant": "Is Important",
"isUsers": "Is User's",
"inTrash": "In Trash"
@@ -2,7 +2,7 @@
"account",
"dateSent",
"emailAddress",
"isRead",
"isNotRead",
"isImportant",
"name",
"status",
@@ -57,6 +57,13 @@
"notStorable": true,
"default": true
},
"isNotRead": {
"type": "bool",
"notStorable": true,
"layoutListDisabled": true,
"layoutDetailDisabled": true,
"layoutMassUpdateDisabled": true
},
"isImportant": {
"type": "bool",
"notStorable": true,
+14
View File
@@ -268,6 +268,20 @@ class Email extends \Espo\Core\SelectManagers\Base
}
protected function getWherePartIsNotReadIsTrue()
{
return array(
'usersMiddle.isRead' => false
);
}
protected function getWherePartIsNotReadIsFalse()
{
return array(
'usersMiddle.isRead' => true
);
}
protected function getWherePartIsReadIsTrue()
{
return array(