diff options
Diffstat (limited to 'lib/classes/StudipController.php')
| -rw-r--r-- | lib/classes/StudipController.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/classes/StudipController.php b/lib/classes/StudipController.php index f749bd0..d103621 100644 --- a/lib/classes/StudipController.php +++ b/lib/classes/StudipController.php @@ -586,6 +586,9 @@ abstract class StudipController extends Trails\Controller public function render_form(\Studip\Forms\Form $form) { \NotificationCenter::postNotification('FormWillRender', $form); + if (\Request::isDialog()) { + $this->response->add_header('X-No-Buttons', 1); + } $this->render_template($form->getTemplate(), $this->layout); } |
