@@ -133,7 +133,7 @@ protected function listGetData( $id = null )
133133 i.name AS infrastructure, s.switchtype AS switchtype, s.model AS model,
134134 s.active AS active, s.notes AS notes, s.lastPolled AS lastPolled,
135135 s.hostname AS hostname, s.os AS os, s.osDate AS osDate, s.osVersion AS osVersion,
136- s.serialNumber AS serialNumber,
136+ s.serialNumber AS serialNumber, s.mauSupported AS mauSupported,
137137 v.id AS vendorid, v.name AS vendor, c.id AS cabinetid, c.name AS cabinet '
138138 )
139139 ->from ( '\\Entities \\Switcher ' , 's ' )
@@ -149,17 +149,17 @@ protected function listGetData( $id = null )
149149
150150 $ this ->view ->switchTypes = $ switchTypes = \Entities \Switcher::$ TYPES ;
151151 $ this ->view ->stype = $ stype = $ this ->getSessionNamespace ()->switch_list_stype
152- = $ this ->getParam ( 'stype ' , ( $ this ->getSessionNamespace ()->switch_list_stype !== null
152+ = $ this ->getParam ( 'stype ' , ( $ this ->getSessionNamespace ()->switch_list_stype !== null
153153 ? $ this ->getSessionNamespace ()->switch_list_stype : \Entities \Switcher::TYPE_SWITCH ) );
154154 if ( $ stype && isset ( $ switchTypes [$ stype ] ) )
155155 $ qb ->andWhere ( 's.switchtype = :stype ' )->setParameter ( 'stype ' , $ stype );
156156
157- $ this ->view ->activeOnly = $ activeOnly = $ this ->getSessionNamespace ()->switch_list_active_only
158- = $ this ->getParam ( 'activeOnly ' , ( $ this ->getSessionNamespace ()->switch_list_active_only !== null
157+ $ this ->view ->activeOnly = $ activeOnly = $ this ->getSessionNamespace ()->switch_list_active_only
158+ = $ this ->getParam ( 'activeOnly ' , ( $ this ->getSessionNamespace ()->switch_list_active_only !== null
159159 ? $ this ->getSessionNamespace ()->switch_list_active_only : true ) );
160160 if ( $ activeOnly )
161161 $ qb ->andWhere ( 's.active = :active ' )->setParameter ( 'active ' , true );
162-
162+
163163 if ( isset ( $ this ->_feParams ->listOrderBy ) )
164164 $ qb ->orderBy ( $ this ->_feParams ->listOrderBy , isset ( $ this ->_feParams ->listOrderByDir ) ? $ this ->_feParams ->listOrderByDir : 'ASC ' );
165165
@@ -352,7 +352,7 @@ protected function formPostProcess( $form, $object, $isEdit, $options = null, $c
352352 $ form ->getElement ( 'cabinetid ' )->setValue ( $ object ->getCabinet ()->getId () );
353353 if ( $ object ->getVendor () )
354354 $ form ->getElement ( 'vendorid ' )->setValue ( $ object ->getVendor ()->getId () );
355-
355+
356356 if ( $ object ->getInfrastructure () )
357357 $ form ->getElement ( 'infrastructure ' )->setValue ( $ object ->getInfrastructure ()->getId () );
358358 else
@@ -522,4 +522,3 @@ protected function preDelete( $object )
522522
523523
524524}
525-
0 commit comments