Skip to content

Commit

Permalink
Fix QGIS server for PyQgsServerAccessControl
Browse files Browse the repository at this point in the history
  • Loading branch information
rldhont committed Oct 7, 2016
1 parent 409a183 commit 7d334c7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/server/qgsserverprojectparser.cpp
Expand Up @@ -240,7 +240,10 @@ QgsMapLayer* QgsServerProjectParser::createLayerFromElement( const QDomElement&
{
addValueRelationLayersForLayer( dynamic_cast<QgsVectorLayer *>( layer ) );
// Reload joins and expression fields
QgsVectorLayer* vlayer = dynamic_cast<QgsVectorLayer *>( layer );
QString subsetString = vlayer->subsetString();
layer->readLayerXML( const_cast<QDomElement&>( elem ) );
vlayer->setSubsetString( subsetString );
}
return layer;
}
Expand Down

0 comments on commit 7d334c7

Please sign in to comment.