[
https://issues.apache.org/jira/browse/CB-11218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15274453#comment-15274453
]
ASF GitHub Bot commented on CB-11218:
-------------------------------------
GitHub user adzellman opened a pull request:
https://github.com/apache/cordova-plugin-dialogs/pull/75
CB-11218 iOS: Handle single button passed as string
- If the buttons are passed in as a string, then
create an array with that string as the only
value.
JIRA: https://issues.apache.org/jira/browse/CB-11218
You can merge this pull request into a Git repository by running:
$ git pull
https://github.com/adobe-marketing-cloud-mobile/cordova-plugin-dialogs
CB-11218cordova-plugin-dialogs
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/cordova-plugin-dialogs/pull/75.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 #75
----
commit fe94dc0d8139d69d9189b1bc86b53f7a45f6c16a
Author: Andrew Zellman <[email protected]>
Date: 2016-05-06T17:50:58Z
CB-11218 iOS: Handle single button passed as string
- If the buttons are passed in as a string, then
create an array with that string as the only
value.
----
> Prompt method should not crash if a string is passed as button value
> --------------------------------------------------------------------
>
> Key: CB-11218
> URL: https://issues.apache.org/jira/browse/CB-11218
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin Dialogs
> Environment: iOS
> Reporter: Andrew Zellman
> Labels: easyfix
>
> The prompt method expects an array as an argument in the command array, but
> there is no input validation requiring that it be an array. A string makes
> just as much sense for a single-button dialog, but if the API user sends a
> string, it crashes.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]