Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MetaGer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository 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
open-source
MetaGer
Commits
b213b226
Commit
b213b226
authored
6 years ago
by
Karl Hasselbring
Browse files
Options
Downloads
Patches
Plain Diff
Die Quicktip-Ergebnisliste ist jetzt standardmäßig leer und nicht null
parent
1263edd5
No related branches found
No related tags found
1 merge request
!1365
Resolve "Filter Options for MetaGer"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/MetaGer.php
+1
-1
1 addition, 1 deletion
app/MetaGer.php
app/Models/Quicktips/Quicktips.php
+12
-2
12 additions, 2 deletions
app/Models/Quicktips/Quicktips.php
with
13 additions
and
3 deletions
app/MetaGer.php
+
1
−
1
View file @
b213b226
...
...
@@ -92,7 +92,7 @@ class MetaGer
}
# Erstellt aus den gesammelten Ergebnissen den View
public
function
createView
(
$quicktipResults
=
null
)
public
function
createView
(
$quicktipResults
=
[]
)
{
# Hiermit werden die evtl. ausgewählten SuMas extrahiert, damit die Input-Boxen richtig gesetzt werden können
$focusPages
=
[];
...
...
This diff is collapsed.
Click to expand it.
app/Models/Quicktips/Quicktips.php
+
12
−
2
View file @
b213b226
...
...
@@ -65,11 +65,21 @@ class Quicktips
}
}
/**
* Load the current Quicktip results
* 1. Retrieve the raw results
* 2. Parse the results
* Returns an empty array if no results are found
*/
public
function
loadResults
()
{
$resultsRaw
=
$this
->
retrieveResults
(
$this
->
hash
);
$results
=
$this
->
parseResults
(
$resultsRaw
);
return
$results
;
if
(
$resultsRaw
)
{
$results
=
$this
->
parseResults
(
$resultsRaw
);
return
$results
;
}
else
{
return
[];
}
}
public
function
retrieveResults
(
$hash
)
...
...
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