Skip to content

Commit f77efcf

Browse files
committed
setresellerpackagelimits() does not properly prepare input arguments
Case 51076: The setresellerpackagelimits() method failed to pass "optional" input argument $package to the xmlapi_query method.
1 parent 09c4170 commit f77efcf

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

CHANGELOG.txt

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
CHANGELOG.txt for xmlapi.php
22

3+
1.0.10:
4+
- github#1 - [Bugfix]: setresellerpackagelimits() does not properly prepare
5+
input arguments for query (Case 51076)
6+
37
1.0.9:
48
- Add input argument to method signature for servicestatus()
59

xmlapi.php

+9-4
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,14 @@
2929
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
3030
* POSSIBILITY OF SUCH DAMAGE.
3131
*
32-
* Version: 1.0.9
32+
* Version: 1.0.10
3333
* Last updated: 27 June 2011
3434
*
3535
* Changes
36+
*
37+
* 1.0.10:
38+
* github#1 - [Bugfix]: setresellerpackagelimits() does not properly prepare
39+
* input arguments for query (Case 51076)
3640
*
3741
* 1.0.9:
3842
* added input argument to servicestatus method which allows single service
@@ -82,7 +86,7 @@
8286
*
8387
* @copyright 2011 cPanel, Inc
8488
* @license http://sdk.cpanel.net/license/bsd.html
85-
* @version 1.0.9
89+
* @version 1.0.10
8690
* @link http://twiki.cpanel.net/twiki/bin/view/AllDocumentation/AutomationIntegration/XmlApi
8791
* @since File available since release 0.1
8892
**/
@@ -110,7 +114,7 @@
110114
* @package xmlapi
111115
* @copyright 2011 cPanel, Inc.
112116
* @license http://sdk.cpanel.net/license/bsd.html
113-
* @version Release: 1.0.9
117+
* @version Release: 1.0.10
114118
* @link http://twiki.cpanel.net/twiki/bin/view/AllDocumentation/AutomationIntegration/XmlApi
115119
* @since Class available since release 0.1
116120
**/
@@ -1664,7 +1668,8 @@ public function setresellerpackagelimits($user, $no_limit, $package = null, $all
16641668
}
16651669
$params = array(
16661670
'user' => $user,
1667-
'no_limit' => '0'
1671+
'no_limit' => '0',
1672+
'package' => $package,
16681673
);
16691674
if ($allowed) {
16701675
$params['allowed'] = 1;

0 commit comments

Comments
 (0)