Differential D14515 Diff 35178 src/applications/transactions/storage/PhabricatorEditEngineConfiguration.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/storage/PhabricatorEditEngineConfiguration.php
| Show First 20 Lines • Show All 100 Lines • ▼ Show 20 Lines | foreach ($fields as $key => $field) { | ||||
| } | } | ||||
| } | } | ||||
| $locks = $this->getFieldLocks(); | $locks = $this->getFieldLocks(); | ||||
| foreach ($fields as $field) { | foreach ($fields as $field) { | ||||
| $key = $field->getKey(); | $key = $field->getKey(); | ||||
| switch (idx($locks, $key)) { | switch (idx($locks, $key)) { | ||||
| case self::LOCK_LOCKED: | case self::LOCK_LOCKED: | ||||
| $field->setIsHidden(false); | |||||
| $field->setIsLocked(true); | $field->setIsLocked(true); | ||||
| break; | break; | ||||
| case self::LOCK_HIDDEN: | case self::LOCK_HIDDEN: | ||||
| $field->setIsHidden(true); | $field->setIsHidden(true); | ||||
| $field->setIsLocked(false); | |||||
| break; | break; | ||||
| case self::LOCK_VISIBLE: | case self::LOCK_VISIBLE: | ||||
| $field->setIsHidden(false); | |||||
| $field->setIsLocked(false); | |||||
| break; | |||||
| default: | default: | ||||
| // If we don't have an explicit value, don't make any adjustments. | |||||
| break; | break; | ||||
| } | } | ||||
| } | } | ||||
| $fields = $this->reorderFields($fields); | $fields = $this->reorderFields($fields); | ||||
| $preamble = $this->getPreamble(); | $preamble = $this->getPreamble(); | ||||
| if (strlen($preamble)) { | if (strlen($preamble)) { | ||||
| ▲ Show 20 Lines • Show All 134 Lines • Show Last 20 Lines | |||||