1
0
Fork 0
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:
epriestley 2016-11-17 10:23:39 -08:00
parent e053534c7e
commit 7ebc47d906

View file

@ -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);