0012148: no sort of columns
authorPhilipp Schüle <p.schuele@metaways.de>
Thu, 1 Sep 2016 14:23:12 +0000 (16:23 +0200)
committerPhilipp Schüle <p.schuele@metaways.de>
Fri, 2 Sep 2016 11:17:18 +0000 (13:17 +0200)
* fixes "paging" parameter name

https://forge.tine20.org/view.php?id=12148

Change-Id: I6bcab89c466d84c6f079a4ee0c6328a330344466
Reviewed-on: http://gerrit.tine20.com/customers/3508
Tested-by: Jenkins CI (http://ci.tine20.com/)
Reviewed-by: Philipp Schüle <p.schuele@metaways.de>
tests/tine20/Tinebase/Server/JsonTests.php
tine20/Tinebase/Server/Json.php

index a665d39..bfe547a 100644 (file)
@@ -67,6 +67,28 @@ class Tinebase_Server_JsonTests extends TestCase
             ),
             'returns' => 'array'
         ), $smdArray['services']['Inventory.deleteInventoryItems']);
+
+        $this->assertEquals(array
+        (
+            'envelope' => 'JSON-RPC-2.0',
+            'transport' => 'POST',
+            'parameters' => array
+            (
+                array
+                (
+                    'type' => 'array',
+                    'optional' => false,
+                    'name' => 'filter'
+                ),
+                array
+                (
+                    'type' => 'array',
+                    'optional' => false,
+                    'name' => 'paging'
+                )
+            ),
+            'returns' => 'array'
+        ), $smdArray['services']['Inventory.searchInventoryItems']);
     }
 
     /**
index 0b1f287..19c9ee6 100644 (file)
@@ -427,7 +427,7 @@ class Tinebase_Server_Json extends Tinebase_Server_Abstract implements Tinebase_
                                 )),
                                 new Zend_Server_Method_Parameter(array(
                                     'type' => 'array',
-                                    'name' => 'pagination',
+                                    'name' => 'paging',
                                 )),
                             ),
                             'help'   => 'Search for ' . $simpleModelName . 's matching given arguments',