Commit 48423414 authored by Victor Heng's avatar Victor Heng Committed by Victor Heng

JsonWizard: Check widget visibility when determining if it's mandatory

The wizard is unable to advance when a mandatory field is hidden. Assume
a hidden widget is not mandatory.

Change-Id: I19bdc1a661d91b75151d3aec34ad9d584002a556
Reviewed-by: Tobias Hunger's avatarTobias Hunger <>
parent 4117ba73
......@@ -955,7 +955,7 @@ bool JsonFieldPage::isComplete() const
hasErrorMessage = true;
if (f->isMandatory())
if (f->isMandatory() && !f->widget()->isHidden())
result = false;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment