This commit is contained in:
sunguangming
2024-01-04 16:33:27 +08:00
parent f17eeaa752
commit 8428abfbd5
2 changed files with 17 additions and 1 deletions
+16
View File
@@ -1,6 +1,22 @@
window.onRenderRow = function(row, rowIdx, data)
{
if(row.children('[data-name=milestone]').find('input[type=radio]:checked').length == 0) row.children('[data-name=milestone]').find('input[type=radio]').eq(1).prop('checked', true);
row.children('[data-name=type]').find('[name^=type]').picker({disabled: true});
if(data != undefined)
{
if(data.hasOwnProperty('type'))
{
row.find('[data-name="type"]').find('.picker-box').on('inited', function(e, info)
{
let $type = info[0];
$type.render({disabled: true});
});
}
row.find('[data-name="ACTIONS"]').find('[data-type="delete"]').remove();
}
if(!data || !data.planIDList) return;
row.children('.form-batch-row-actions').children('[data-type=delete]').addClass('hidden');
+1 -1
View File
@@ -594,7 +594,7 @@ class webhookModel extends model
if(empty($table)) return false;
$object = $this->dao->select('*')->from($table)->where('id')->eq($action->objectID)->fetch();
$toList = $this->loadModel('message')->getToList($object, $action->objectType, $actionID);
$toList = $this->loadModel('message')->getToList((object)$object, $action->objectType, $actionID);
if(!empty($object->mailto)) $toList .= ',' . $object->mailto;
if(empty($toList)) return false;