You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2015/11/23 13:08:10 UTC
[jira] [Commented] (SLING-4658) ValueMapDecorator should support
conversion from array to single value type
[ https://issues.apache.org/jira/browse/SLING-4658?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15022008#comment-15022008 ]
ASF GitHub Bot commented on SLING-4658:
---------------------------------------
GitHub user RasGrass opened a pull request:
https://github.com/apache/sling/pull/114
SLING-4658
Now, when we want to get single value from object which is an array, the first element is returned instead of null
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/RasGrass/sling SLING-4658
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/sling/pull/114.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #114
----
commit 71ab1df006d9ef4eead90798ef4874bcbfbf41af
Author: Mikołaj Mański <ra...@users.noreply.github.com>
Date: 2015-11-23T09:51:31Z
Merge pull request #1 from apache/trunk
trunk update
commit 18634ad9d18376f66dd826803a46e2ea9bd97fc0
Author: Mikolaj Manski <mi...@cognifide.com>
Date: 2015-11-23T11:58:30Z
SLING-4658 added support for conversion from array to single value type
----
> ValueMapDecorator should support conversion from array to single value type
> ---------------------------------------------------------------------------
>
> Key: SLING-4658
> URL: https://issues.apache.org/jira/browse/SLING-4658
> Project: Sling
> Issue Type: Bug
> Affects Versions: API 2.9.0
> Reporter: Konrad Windszus
>
> Similar to what is described in SLING-662 {{ValueMapDecorator}} should support conversions from multivalue to singlevalue and vice-versa. Currently it does not support retrieving a single value element from an underlying array (neither with nor without type conversion).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)