Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
WE.SpreadsheetImport
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Labels
Merge Requests
0
Merge Requests
0
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
packages
WE.SpreadsheetImport
Commits
fdc050b0
Commit
fdc050b0
authored
Oct 28, 2016
by
Chivy Lim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IMP] Correct format of argument params
refs KIME-3609
parent
85e2c0ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
1 deletion
+21
-1
Classes/WE/SpreadsheetImport/FrontendMappingService.php
Classes/WE/SpreadsheetImport/FrontendMappingService.php
+21
-1
No files found.
Classes/WE/SpreadsheetImport/FrontendMappingService.php
View file @
fdc050b0
...
@@ -34,6 +34,18 @@ class FrontendMappingService {
...
@@ -34,6 +34,18 @@ class FrontendMappingService {
*/
*/
protected
$settings
;
protected
$settings
;
/**
* @Flow\Inject
* @var \TYPO3\Flow\Persistence\PersistenceManagerInterface
*/
protected
$persistenceManager
;
/**
* @Flow\Inject
* @var \TYPO3\Flow\Property\PropertyMapper
*/
protected
$propertyMapper
;
/**
/**
* @param string $context
* @param string $context
* @param \TYPO3\Flow\Mvc\ActionRequest $request
* @param \TYPO3\Flow\Mvc\ActionRequest $request
...
@@ -48,8 +60,16 @@ class FrontendMappingService {
...
@@ -48,8 +60,16 @@ class FrontendMappingService {
$name
=
$contextArgument
[
'name'
];
$name
=
$contextArgument
[
'name'
];
if
(
isset
(
$contextArgument
[
'static'
]))
{
if
(
isset
(
$contextArgument
[
'static'
]))
{
$arguments
[
$name
]
=
$contextArgument
[
'static'
];
$arguments
[
$name
]
=
$contextArgument
[
'static'
];
}
elseif
(
$request
->
hasArgument
(
$name
))
{
$value
=
$request
->
getArgument
(
$name
);
if
(
isset
(
$contextArgument
[
'domain'
]))
{
$object
=
$this
->
propertyMapper
->
convert
(
$value
,
$contextArgument
[
'domain'
]);
$arguments
[
$name
]
=
$this
->
persistenceManager
->
getIdentifierByObject
(
$object
);
}
else
{
$arguments
[
$name
]
=
$value
;
}
}
else
{
}
else
{
$arguments
[
$name
]
=
$request
->
hasArgument
(
$name
)
?
$request
->
getArgument
(
$name
)
:
NULL
;
$arguments
[
$name
]
=
NULL
;
}
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment