Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
OLAT CI-CD Testing Project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
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
Lars Oliver Dam
OLAT CI-CD Testing Project
Commits
3862f5c0
Commit
3862f5c0
authored
6 years ago
by
srosse
Browse files
Options
Downloads
Patches
Plain Diff
OO-3839: use a default quota in bulk configuration of groups
parent
27291c57
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/org/olat/admin/quota/QuotaManagerImpl.java
+4
-1
4 additions, 1 deletion
src/main/java/org/olat/admin/quota/QuotaManagerImpl.java
src/main/java/org/olat/group/ui/wizard/BGConfigToolsStepController.java
+2
-1
2 additions, 1 deletion
...org/olat/group/ui/wizard/BGConfigToolsStepController.java
with
6 additions
and
2 deletions
src/main/java/org/olat/admin/quota/QuotaManagerImpl.java
+
4
−
1
View file @
3862f5c0
...
...
@@ -170,7 +170,10 @@ public class QuotaManagerImpl implements QuotaManager, InitializingBean {
*/
@Override
public
Quota
getDefaultQuota
(
String
identifyer
)
{
return
defaultQuotas
.
get
(
identifyer
);
if
(
StringHelper
.
containsNonWhitespace
(
identifyer
))
{
return
defaultQuotas
.
get
(
identifyer
);
}
return
null
;
}
/**
...
...
This diff is collapsed.
Click to expand it.
src/main/java/org/olat/group/ui/wizard/BGConfigToolsStepController.java
+
2
−
1
View file @
3862f5c0
...
...
@@ -22,6 +22,7 @@ package org.olat.group.ui.wizard;
import
java.util.ArrayList
;
import
java.util.List
;
import
org.olat.admin.quota.QuotaConstants
;
import
org.olat.collaboration.CalendarToolSettingsController
;
import
org.olat.collaboration.CollaborationTools
;
import
org.olat.collaboration.CollaborationToolsFactory
;
...
...
@@ -118,7 +119,7 @@ public class BGConfigToolsStepController extends StepFormBasicController {
//add quota configuration for admin only
if
(
quotaManager
.
hasMinimalRolesToEditquota
(
roles
))
{
Quota
quota
=
quotaManager
.
createQuota
(
null
,
null
,
null
);
Quota
quota
=
quotaManager
.
createQuota
(
QuotaConstants
.
IDENTIFIER_DEFAULT_GROUPS
,
null
,
null
);
config
.
quotaCtrl
=
new
BGConfigQuotaController
(
ureq
,
getWindowControl
(),
quota
,
mainForm
);
config
.
configContainer
.
add
(
"quota"
,
config
.
quotaCtrl
.
getInitialFormItem
());
config
.
quotaCtrl
.
getInitialFormItem
().
setVisible
(
false
);
...
...
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