mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-30 18:52:42 +01:00
(stable) Fix an EditEngine issue with unlocking fields which can't be locked
Summary: This code should go inside the field-locking loop. Otherwise, it only applies to the last field, and fatals if there are no fields. Test Plan: Carefuller inspection. Reviewers: chad Reviewed By: chad Subscribers: 20after4 Differential Revision: https://secure.phabricator.com/D16889
This commit is contained in:
parent
e053534c7e
commit
7ebc47d906
1 changed files with 4 additions and 4 deletions
|
@ -158,11 +158,11 @@ final class PhabricatorEditEngineConfiguration
|
|||
// If we don't have an explicit value, don't make any adjustments.
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// If the field isn't lockable, remove any lock we applied.
|
||||
if (!$field->getIsLockable()) {
|
||||
$field->setIsLocked(false);
|
||||
// If the field isn't lockable, remove any lock we applied.
|
||||
if (!$field->getIsLockable()) {
|
||||
$field->setIsLocked(false);
|
||||
}
|
||||
}
|
||||
|
||||
$fields = $this->reorderFields($fields);
|
||||
|
|
Loading…
Reference in a new issue