Skip to content
Permalink
Browse files

put back old code

  • Loading branch information
3nids committed Sep 15, 2020
1 parent 834bcc7 commit ab6676755b67d00d75c73e24b58d3c3efa2226d1
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/server/services/landingpage/qgslandingpageutils.cpp
@@ -456,11 +456,15 @@ json QgsLandingPageUtils::projectInfo( const QString &projectUri )
const QgsFields &cFields { vl->fields() };
for ( const QgsField &field : cFields )
{
if ( !field.configurationFlags().testFlag( QgsField::ConfigurationFlag::ExposeViaWfs ) )
// TODO: replace with non deprecated method and fix the tests
// if ( !field.configurationFlags().testFlag( QgsField::ConfigurationFlag::ExposeViaWfs ) )
Q_NOWARN_DEPRECATED_PUSH
if ( vl->excludeAttributesWfs().contains( vl->name() ) )
{
++fieldIdx;
continue;
}
Q_NOWARN_DEPRECATED_POP
const QgsFieldConstraints::Constraints constraints { field.constraints().constraints() };
const bool notNull { constraints &QgsFieldConstraints::Constraint::ConstraintNotNull &&
field.constraints().constraintStrength( QgsFieldConstraints::Constraint::ConstraintNotNull ) == QgsFieldConstraints::ConstraintStrength::ConstraintStrengthHard };

0 comments on commit ab66767

Please sign in to comment.
You can’t perform that action at this time.