Dont render delete button on Entries that have subordinates

This commit is contained in:
2025-07-03 13:08:48 +08:00
parent 46277146c5
commit 883ac5d90f
3 changed files with 8 additions and 7 deletions

View File

@@ -412,7 +412,7 @@ class HomeController extends Controller
->with('page_actions',collect([
'copy'=>FALSE,
'create'=>($x=($o->getObjects()->except('entryuuid')->count() > 0)),
'delete'=>$x,
'delete'=>(! is_null($xx=$o->getObject('hassubordinates')->value)) && ($xx === 'FALSE'),
'edit'=>$x,
'export'=>$x,
])),