Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CourseCopy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Stud.IP
Plugins
CourseCopy
Commits
430c754c
Commit
430c754c
authored
Mar 5, 2019
by
Rasmus Fuhse
Browse files
Options
Downloads
Patches
Plain Diff
update to 4.x
parent
cb50fcb4
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
CourseCopy.class.php
+1
-1
1 addition, 1 deletion
CourseCopy.class.php
controllers/copy.php
+0
-18
0 additions, 18 deletions
controllers/copy.php
plugin.manifest
+3
-3
3 additions, 3 deletions
plugin.manifest
views/copy/info.php
+1
-1
1 addition, 1 deletion
views/copy/info.php
with
5 additions
and
23 deletions
CourseCopy.class.php
+
1
−
1
View file @
430c754c
...
@@ -9,7 +9,7 @@ class CourseCopy extends StudIPPlugin implements AdminCourseAction
...
@@ -9,7 +9,7 @@ class CourseCopy extends StudIPPlugin implements AdminCourseAction
public
function
useMultimode
()
{
public
function
useMultimode
()
{
if
(
version_compare
(
$GLOBALS
[
'SOFTWARE_VERSION'
],
"3.4.99"
,
">="
))
{
if
(
version_compare
(
$GLOBALS
[
'SOFTWARE_VERSION'
],
"3.4.99"
,
">="
))
{
//Damit es im Dialog geffnet wird
//Damit es im Dialog ge
ö
ffnet wird
return
\Studip\Button
::
createAccept
(
_
(
"Kopieren"
),
"edit"
,
array
(
'data-dialog'
=>
1
));
return
\Studip\Button
::
createAccept
(
_
(
"Kopieren"
),
"edit"
,
array
(
'data-dialog'
=>
1
));
}
else
{
}
else
{
return
_
(
"Kopieren"
);
return
_
(
"Kopieren"
);
...
...
This diff is collapsed.
Click to expand it.
controllers/copy.php
+
0
−
18
View file @
430c754c
...
@@ -95,24 +95,6 @@ class CopyController extends PluginController
...
@@ -95,24 +95,6 @@ class CopyController extends PluginController
$newentry
->
store
();
$newentry
->
store
();
}
}
//Dateiordner
$insert_folder
=
DBManager
::
get
()
->
prepare
(
"
INSERT IGNORE INTO folder
SET folder_id = MD5(CONCAT(:seminar_id, 'allgemeine_dateien')),
range_id = :seminar_id,
user_id = :user_id,
name = :name,
description = :description,
mkdate = UNIX_TIMESTAMP(),
chdate = UNIX_TIMESTAMP()
"
);
$insert_folder
->
execute
(
array
(
'seminar_id'
=>
$newcourse
->
getId
(),
'user_id'
=>
$GLOBALS
[
'user'
]
->
id
,
'name'
=>
_
(
"Allgemeiner Dateiordner"
),
'description'
=>
_
(
"Ablage fr allgemeine Ordner und Dokumente der Veranstaltung"
)
));
if
(
Request
::
get
(
"cycles"
))
{
if
(
Request
::
get
(
"cycles"
))
{
foreach
(
$oldcourse
->
cycles
as
$cycledate
)
{
foreach
(
$oldcourse
->
cycles
as
$cycledate
)
{
$newcycle
=
new
SeminarCycleDate
();
$newcycle
=
new
SeminarCycleDate
();
...
...
This diff is collapsed.
Click to expand it.
plugin.manifest
+
3
−
3
View file @
430c754c
pluginname=CourseCopy
pluginname=CourseCopy
pluginclassname=CourseCopy
pluginclassname=CourseCopy
version=1.
0
version=1.
1
origin=data-quest
origin=data-quest
studipMinVersion=3.4
studipMinVersion=4.0
studipMaxVersion=3.6
studipMaxVersion=4.2.99
\ No newline at end of file
\ No newline at end of file
This diff is collapsed.
Click to expand it.
views/copy/info.php
+
1
−
1
View file @
430c754c
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
<label>
<label>
<input
type=
"checkbox"
name=
"cycles"
value=
"1"
checked
>
<input
type=
"checkbox"
name=
"cycles"
value=
"1"
checked
>
<?=
_
(
"Regelmige Termine mit kopieren"
)
?>
<?=
_
(
"Regelm
äß
ige Termine mit kopieren"
)
?>
</label>
</label>
</fieldset>
</fieldset>
<div
data-dialog-button
>
<div
data-dialog-button
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment