mirror of
https://we.phorge.it/source/phorge.git
synced 2025-02-25 13:09:08 +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.
|
// If we don't have an explicit value, don't make any adjustments.
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// If the field isn't lockable, remove any lock we applied.
|
// If the field isn't lockable, remove any lock we applied.
|
||||||
if (!$field->getIsLockable()) {
|
if (!$field->getIsLockable()) {
|
||||||
$field->setIsLocked(false);
|
$field->setIsLocked(false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$fields = $this->reorderFields($fields);
|
$fields = $this->reorderFields($fields);
|
||||||
|
|
Loading…
Add table
Reference in a new issue