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
796233dd
Commit
796233dd
authored
2 years ago
by
Philipp Schüttlöffel
Committed by
Jan-Hendrik Willms
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Resolve "Persönliche Angaben: Text sollte konfigurierbar sein"
Closes #2582 Merge request
studip/studip!1781
parent
b57422a8
No related branches found
No related tags found
No related merge requests found
Pipeline
#12434
passed
1 year ago
Stage: checks
Stage: analyse
Stage: test
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/views/settings/account/index.php
+1
-2
1 addition, 2 deletions
app/views/settings/account/index.php
db/migrations/5.4.4_add_personal_details_info_text_config.php
+44
-0
44 additions, 0 deletions
...igrations/5.4.4_add_personal_details_info_text_config.php
with
45 additions
and
2 deletions
app/views/settings/account/index.php
+
1
−
2
View file @
796233dd
...
@@ -8,8 +8,7 @@ $genders = [
...
@@ -8,8 +8,7 @@ $genders = [
?>
?>
<?
if
(
$user
->
auth_plugin
!==
'standard'
)
:
?>
<?
if
(
$user
->
auth_plugin
!==
'standard'
)
:
?>
<?=
MessageBox
::
info
(
sprintf
(
_
(
'Einige Ihrer persönlichen Daten werden nicht in Stud.IP verwaltet '
<?=
MessageBox
::
info
(
Config
::
get
()
->
PERSONAL_DETAILS_INFO_TEXT
)
?>
.
'und können daher hier nicht geändert werden.'
)))
?>
<?
endif
;
?>
<?
endif
;
?>
<?
if
(
$locked_info
)
:
?>
<?
if
(
$locked_info
)
:
?>
...
...
This diff is collapsed.
Click to expand it.
db/migrations/5.4.4_add_personal_details_info_text_config.php
0 → 100644
+
44
−
0
View file @
796233dd
<?php
class
AddPersonalDetailsInfoTextConfig
extends
Migration
{
public
function
description
()
{
return
'Adds the configuration PERSONAL_DETAILS_INFO_TEXT, if it doesn\'t exist yet. Also adds english translation.'
;
}
protected
function
up
()
{
$db
=
DBManager
::
get
();
$db
->
exec
(
"INSERT IGNORE INTO `config`
(`field`, `value`, `type`, `range`, `section`, `mkdate`, `chdate`, `description`)
VALUES
(
'PERSONAL_DETAILS_INFO_TEXT', 'Einige Ihrer persönlichen Daten werden nicht in Stud.IP verwaltet und können daher hier nicht geändert werden.',
'i18n', 'global', 'global', UNIX_TIMESTAMP(), UNIX_TIMESTAMP(),
'Der Infotext der unter Profil->Persönliche Angaben->Grunddaten angezeigt wird, wenn man nicht die Standard-Auth nutzt.'
)"
);
$db
->
execute
(
"INSERT IGNORE INTO `i18n`
(`object_id`, `table`, `field`, `lang`, `value`)
VALUES
(
MD5('PERSONAL_DETAILS_INFO_TEXT'), 'config', 'value', 'en_GB',
'Some of your personal data is not managed in Stud.IP and therefore cannot be changed here.'
)"
);
}
protected
function
down
()
{
$db
=
DBManager
::
get
();
$db
->
exec
(
"DELETE FROM `config_values` WHERE `field` = 'PERSONAL_DETAILS_INFO_TEXT'"
);
$db
->
exec
(
"DELETE FROM `config` WHERE `field` = 'PERSONAL_DETAILS_INFO_TEXT'"
);
$db
->
exec
(
"DELETE FROM `i18n` WHERE `object_id` = MD5('PERSONAL_DETAILS_INFO_TEXT') AND `table` = 'config' AND `field` = 'value'"
);
}
}
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