Page MenuHomePhabricator

D16895.diff
No OneTemporary

D16895.diff

diff --git a/src/applications/transactions/storage/PhabricatorEditEngineConfiguration.php b/src/applications/transactions/storage/PhabricatorEditEngineConfiguration.php
--- a/src/applications/transactions/storage/PhabricatorEditEngineConfiguration.php
+++ b/src/applications/transactions/storage/PhabricatorEditEngineConfiguration.php
@@ -144,25 +144,26 @@
switch (idx($locks, $key)) {
case self::LOCK_LOCKED:
$field->setIsHidden(false);
- $field->setIsLocked(true);
+ if ($field->getIsLockable()) {
+ $field->setIsLocked(true);
+ }
break;
case self::LOCK_HIDDEN:
$field->setIsHidden(true);
- $field->setIsLocked(false);
+ if ($field->getIsLockable()) {
+ $field->setIsLocked(false);
+ }
break;
case self::LOCK_VISIBLE:
$field->setIsHidden(false);
- $field->setIsLocked(false);
+ if ($field->getIsLockable()) {
+ $field->setIsLocked(false);
+ }
break;
default:
// 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);
- }
}
$fields = $this->reorderFields($fields);

File Metadata

Mime Type
text/plain
Expires
Sun, Dec 22, 3:41 AM (20 h, 55 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6917336
Default Alt Text
D16895.diff (1 KB)

Event Timeline