diff --git a/controllers/copy.php b/controllers/copy.php index dd966a7f99bfff28efe00570b1b0c63169834772..b05e73e14d412b92cb1d41e3e440e764aea507e4 100755 --- a/controllers/copy.php +++ b/controllers/copy.php @@ -28,7 +28,8 @@ class CopyController extends PluginController $this->single_course_name = $this->single_course; } } else { - throw new Trails_Exception(400); + echo MessageBox::error(_('Wählen Sie mindestens eine Veranstaltung zum Kopieren aus.')); + die(); } } diff --git a/plugin.manifest b/plugin.manifest index e2280727ab352b2e24dbe5e173795b75c54391e4..c1093d71625a1f66076fc62b2e77869107229182 100755 --- a/plugin.manifest +++ b/plugin.manifest @@ -1,6 +1,6 @@ pluginname=CourseCopy pluginclassname=CourseCopy -version=1.9.5 +version=1.9.6 origin=data-quest studipMinVersion=4.0 -studipMaxVersion=5.3.99 +studipMaxVersion=5.4.99 diff --git a/views/action/checkbox.php b/views/action/checkbox.php index c8119916f6ea6dfca6b6c4260b3ebe45b169e6d3..451eca997eafc2b60e62fcf3dc03dfd4cc4feac1 100755 --- a/views/action/checkbox.php +++ b/views/action/checkbox.php @@ -1,3 +1,6 @@ -<? if (Seminar_Perm::get()->have_studip_perm('dozent', $course_id) && !LockRules::check($course_id, 'seminar_copy')) : ?> -<input type="checkbox" name="c[]" value="<?= htmlReady($course_id) ?>"> -<? endif ?> \ No newline at end of file +<? if (Seminar_Perm::get()->have_studip_perm('dozent', $course_id) + && !LockRules::check($course_id, 'seminar_copy')) : ?> + <input type="checkbox" name="c[]" value="<?= htmlReady($course_id) ?>"> +<? else : ?> + <input type="checkbox" disabled title="<?= !LockRules::check($course_id, 'seminar_copy') ? _('Veranstaltung darf nicht kopiert werden.') : _('Sie brauchen mindestens Dozentenrechte in der Veranstaltung.') ?>"> +<? endif ?>