mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Default documents
This commit is contained in:
parent
e6802e0e3b
commit
e30a376f73
@ -127,11 +127,9 @@ class DatatableService
|
||||
}
|
||||
}
|
||||
|
||||
if ($model->deleted_at && $model->deleted_at != '0000-00-00') {
|
||||
if ($can_edit) {
|
||||
$dropdown_contents .= "<li><a href=\"javascript:submitForm_{$datatable->entityType}('restore', {$model->public_id})\">"
|
||||
. mtrans($datatable->entityType, "restore_{$datatable->entityType}") . '</a></li>';
|
||||
}
|
||||
if ($model->deleted_at && $model->deleted_at != '0000-00-00' && $can_edit) {
|
||||
$dropdown_contents .= "<li><a href=\"javascript:submitForm_{$datatable->entityType}('restore', {$model->public_id})\">"
|
||||
. mtrans($datatable->entityType, "restore_{$datatable->entityType}") . '</a></li>';
|
||||
}
|
||||
|
||||
if (property_exists($model, 'is_deleted') && ! $model->is_deleted && $can_edit) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user