Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Stud.IP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Marcus Eibrink-Lunzenauer
Stud.IP
Commits
3b0a598f
Commit
3b0a598f
authored
5 months ago
by
Jan-Hendrik Willms
Browse files
Options
Downloads
Patches
Plain Diff
remove bogus code from renaming tools, re #4633
Merge request
studip/studip!3449
parent
bcc397de
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/controllers/course/contentmodules.php
+1
-1
1 addition, 1 deletion
app/controllers/course/contentmodules.php
app/views/course/contentmodules/rename.php
+2
-3
2 additions, 3 deletions
app/views/course/contentmodules/rename.php
with
3 additions
and
4 deletions
app/controllers/course/contentmodules.php
+
1
−
1
View file @
3b0a598f
...
...
@@ -215,7 +215,7 @@ class Course_ContentmodulesController extends AuthenticatedController
$this
->
module
=
PluginManager
::
getInstance
()
->
getPluginById
(
$module_id
);
$this
->
metadata
=
$this
->
module
->
getMetadata
();
$this
->
original_name
=
$this
->
metadata
[
'diplayname'
]
??
$this
->
module
->
get
Metadata
()[
'displayn
ame
'
]
;
$this
->
original_name
=
$this
->
metadata
[
'di
s
playname'
]
??
$this
->
module
->
get
PluginN
ame
()
;
PageLayout
::
setTitle
(
_
(
'Werkzeug umbenennen'
));
$this
->
tool
=
ToolActivation
::
find
([
$context
->
id
,
$module_id
]);
...
...
This diff is collapsed.
Click to expand it.
app/views/course/contentmodules/rename.php
+
2
−
3
View file @
3b0a598f
...
...
@@ -3,7 +3,6 @@
* @var Course_ContentmodulesController $controller
* @var StudipModule $module
* @var string $original_name
* @var array $metadata
* @var ToolActivation $tool
*/
?>
...
...
@@ -16,7 +15,7 @@
<?=
_
(
'Neuer Name des Werkzeugs'
)
?>
<input
type=
"text"
name=
"displayname"
value=
"
<?=
htmlReady
(
$tool
[
'
metadata
'
]
[
'displayname'
]
??
''
)
?>
"
value=
"
<?=
htmlReady
(
$tool
->
metadata
[
'displayname'
]
??
''
)
?>
"
placeholder=
"
<?=
htmlReady
(
$original_name
)
?>
"
>
</label>
...
...
@@ -26,7 +25,7 @@
</fieldset>
<div
data-dialog-button
>
<?=
\Studip\Button
::
create
(
_
(
'Speichern'
))
?>
<?
if
(
!
empty
(
$tool
[
'
metadata
'
]
[
'displayname'
]))
:
?>
<?
if
(
!
empty
(
$tool
->
metadata
[
'displayname'
]))
:
?>
<?=
\Studip\Button
::
create
(
_
(
'Namen löschen'
),
'delete'
)
?>
<?
endif
?>
</div>
...
...
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