Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14347592
D16895.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D16895.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 20, 3:04 AM (19 h, 38 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6909317
Default Alt Text
D16895.diff (1 KB)
Attached To
Mode
D16895: When a field isn't lockable, just freeze the lock status instead of removing any lock
Attached
Detach File
Event Timeline
Log In to Comment