Skip to content

Commit

Permalink
Changes in Combo2 configs to suite new scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverFire committed May 1, 2015
1 parent d727f1b commit c6b2046
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions assets/combo2/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
class Server extends Combo2Config
{
/** @inheritdoc */
public $type = 'server';
public $type = 'server/server';

/** @inheritdoc */
public $_primaryFilter = 'name_like';
public $name = 'name';

/** @inheritdoc */
public $url = '/server/server/search';
Expand All @@ -26,15 +26,17 @@ class Server extends Combo2Config
public $_rename = ['text' => 'name'];

/** @inheritdoc */
public $_filter = ['client' => 'client'];
public $_filter = ['client' => 'client/client'];

/** @inheritdoc */
function getConfig ($config = []) {
function getConfig($config = [])
{
$config = ArrayHelper::merge([
'clearWhen' => ['client'],
'affects' => [
'client' => 'client',
'seller' => 'seller'
'client/seller' => 'seller',
'client/client' => 'client',
'seller' => 'seller',
]
], $config);

Expand Down

0 comments on commit c6b2046

Please sign in to comment.