Skip to content

Commit

Permalink
Ignore readonly config if field is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
annda committed Feb 22, 2022
1 parent d985097 commit 4285a9d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public function isRequired()
*/
public function isReadonly()
{
return (bool)$this->getConfigValue('readonly');
return (bool)$this->getConfigValue('readonly') && $this->hasValue();
}

/**
Expand Down

0 comments on commit 4285a9d

Please sign in to comment.