issue #21478: Hide new button for lists where it does not apply
Merge branch '21478'